public static void UnPauseGame() { m_PauseApplication = false; // Close the pause menu ( shouldn't make a different whether it was opened to start with or nots PauseGameEvent pauseEvent = new PauseGameEvent(false); pauseEvent.Fire(); // State that the user can pause the game again // ( this should only really be automatic if the game was paused outside of the pause menu buttons) m_CanPause = true; }
/* This is an auto pause menu if pause is enabled and the pause button is pressed in game. It shows the pause menu as well */ private static void PauseGameMenu() { m_PauseApplication = true; // Show the pause menu PauseGameEvent pauseEvent = new PauseGameEvent(true); pauseEvent.Fire(); }