diff --git a/Assets/Scripts/GameController.cs b/Assets/Scripts/GameController.cs index 40eac0b..ba6b4c5 100644 --- a/Assets/Scripts/GameController.cs +++ b/Assets/Scripts/GameController.cs @@ -21,12 +21,14 @@ namespace Assets.Scripts private int mult = 1; void Start() - { - size = BG.GetComponent().sprite.bounds.size; - tra = BG.GetComponent(); + { Screen.autorotateToLandscapeRight = true; Screen.autorotateToLandscapeLeft = true; + Screen.autorotateToPortrait = false; + Screen.autorotateToPortraitUpsideDown = false; Screen.orientation = ScreenOrientation.AutoRotation; + size = BG.GetComponent().sprite.bounds.size; + tra = BG.GetComponent(); } void Update() diff --git a/Assets/Scripts/GameOver.cs b/Assets/Scripts/GameOver.cs index 1032d27..02d8e93 100644 --- a/Assets/Scripts/GameOver.cs +++ b/Assets/Scripts/GameOver.cs @@ -22,6 +22,8 @@ public class GameOver : MonoBehaviour { Screen.autorotateToLandscapeRight = true; Screen.autorotateToLandscapeLeft = true; + Screen.autorotateToPortrait = false; + Screen.autorotateToPortraitUpsideDown = false; Screen.orientation = ScreenOrientation.AutoRotation; } diff --git a/Assets/Scripts/HighScores.cs b/Assets/Scripts/HighScores.cs index dd14821..2fe3b79 100644 --- a/Assets/Scripts/HighScores.cs +++ b/Assets/Scripts/HighScores.cs @@ -18,6 +18,8 @@ public class HighScores : MonoBehaviour { void Start () { Screen.autorotateToLandscapeRight = true; Screen.autorotateToLandscapeLeft = true; + Screen.autorotateToPortrait = false; + Screen.autorotateToPortraitUpsideDown = false; Screen.orientation = ScreenOrientation.AutoRotation; ScoreText.text = ""; Server = gameObject.GetComponent(typeof(Server)) as Server; diff --git a/Assets/Scripts/Menu.cs b/Assets/Scripts/Menu.cs index 1a58a65..1c77790 100644 --- a/Assets/Scripts/Menu.cs +++ b/Assets/Scripts/Menu.cs @@ -9,6 +9,8 @@ public class Menu : MonoBehaviour { void Start () { Screen.autorotateToLandscapeRight = true; Screen.autorotateToLandscapeLeft = true; + Screen.autorotateToPortrait = false; + Screen.autorotateToPortraitUpsideDown = false; Screen.orientation = ScreenOrientation.AutoRotation; }