public void OnApplicationFocus(bool focus)
 {
     if (focus)
     {
         OrientationHelper.LockRotation(_gameState == GameState.Playing);
         //InitLandscapeSupportAndroid();
     }
 }
 public void GameOver()
 {
     if (gameState == GameState.Paused)
     {
         gameSceneManager.PauseButtonClicked();
     }
     OrientationHelper.LockRotation(false);
     //TryLoadResults();
     gameSceneManager.GameOver();
     postAttempts = 0;
     gameState    = GameState.Results;
     //Invoke("ShowResultsScreen", 2.5f);
 }
 private void InitializeMenuScene()
 {
     ConfigureNavigation(navigationEnabled);
     CustomizeScrollers();
     OrientationHelper.LockRotation(false);
     if (!menuSceneManager)
     {
         //tutorialController = FindObjectOfType<TutorialController>();
         //settingsCanvasGroup = FindObjectOfType<CanvasGroup>();
         menuSceneManager = FindObjectOfType <MenuSceneManager>();
     }
     if (fadeInOnLoad)
     {
         menuSceneManager.FadeOutLoadingScreen();
     }
 }
    private void InitializeGameScene()
    {
        ConfigureNavigation(navigationEnabled);
        CustomizeScrollers();
        OrientationHelper.LockRotation(true);
        if (!gameSceneManager)
        {
            gameSceneManager = FindObjectOfType <GameSceneManager>();
            //player = FindObjectOfType<PlayerController>();
            //generator = FindObjectOfType<RandomTerrainGenerator>();
            //waterController = FindObjectOfType<WaterController>();
            //distanceDisplay = GameObject.Find(k_distanceDisplayName).GetComponent<Text>();

            //garbageCollector = FindObjectOfType<DeactivateOnLeave>();
        }
        if (fadeInOnLoad)
        {
            gameSceneManager.FadeOutLoadingScreen();
        }
    }