public void OnPausePressed() { // stop gameplay Time.timeScale = 0; // open the pause menu PauseMenu.Open(); }
// pauses the game and opens the pause menu private void OnPausePressed() { Time.timeScale = 0; AudioManager audioManager = Object.FindObjectOfType <AudioManager>(); audioManager.PauseSfx(); PauseMenu.Open(); }
public void OnPausePressed() { if (DataManager.Instance != null) { DataManager.Instance.Save(); } Time.timeScale = 0; PauseMenu.Open(); }
public void OnPausePressed() { Time.timeScale = 0; PauseMenu.Open(); }
public void OnPausePressed() { Cursor.visible = true; Time.timeScale = 0; PauseMenu.Open(); }