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