示例#1
0
        public void OnPausePressed()
        {
            // stop gameplay
            Time.timeScale = 0;

            // open the pause menu
            PauseMenu.Open();
        }
示例#2
0
        // pauses the game and opens the pause menu
        private void OnPausePressed()
        {
            Time.timeScale = 0;
            AudioManager audioManager = Object.FindObjectOfType <AudioManager>();

            audioManager.PauseSfx();
            PauseMenu.Open();
        }
示例#3
0
        public void OnPausePressed()
        {
            if (DataManager.Instance != null)
            {
                DataManager.Instance.Save();
            }

            Time.timeScale = 0;
            PauseMenu.Open();
        }
示例#4
0
        public void OnPausePressed()
        {
            Time.timeScale = 0;

            PauseMenu.Open();
        }
示例#5
0
 public void OnPausePressed()
 {
     Cursor.visible = true;
     Time.timeScale = 0;
     PauseMenu.Open();
 }