Esempio n. 1
0
 private void Update()
 {
     if (Input.GetButtonDown("Pause"))
     {
         if (GameManagerSys.isGamePaused)
         {
             GameManagerSys.ResumeGame();
         }
         else
         {
             if (!GameManagerSys.isShowingDeathScreen)
             {
                 GameManagerSys.PauseGame();
             }
         }
     }
 }
Esempio n. 2
0
 public void BackToMainMenu()
 {
     GameManagerSys.ResumeGame();
     GameManagerSys.isSwitchingLevel = true;
     SceneManager.LoadScene("MainMenu");
 }
Esempio n. 3
0
 public void ResumeGame()
 {
     GameManagerSys.ResumeGame();
 }