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