public static void LoadSceneOrQuit(string sceneName)
 {
     if (!SceneManager.GetActiveScene().name.Equals(sceneName))
     {
         KittyDashSceneManager.LoadScene(sceneName);
     }
     else
     {
         Application.Quit();
     }
 }
Example #2
0
 public void NextTutorial()
 {
     if (_tutorials.Count > 0)
     {
         var peek = _tutorials.Peek();
         if (peek != null)
         {
             GameObject.Destroy(_currentTutorial);
             _currentTutorial = GameObject.Instantiate(_tutorials.Dequeue());
         }
         else
         {
             KittyDashSceneManager.LoadScene("Scene_Ingame");
         }
     }
     else
     {
         KittyDashSceneManager.LoadScene("Scene_Ingame");
     }
 }
 public void GoToScene(string sceneName)
 {
     GameManager.Instance.PostHighScore();
     KittyDashSceneManager.LoadScene(sceneName);
 }