/// <summary>
 /// Puase the game
 /// </summary>
 public static void PauseGame()
 {
     //Fire event to load game
     //(i.e reset level offset)
     LevelPaused?.Invoke();
     gameRunning = false;
 }
예제 #2
0
 /// <summary>
 /// Raises the LevelPaused event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnLevelPaused(EventArgs e)
 {
     LevelPaused?.Invoke(this, e);
 }
 public static void PauseGame()
 {
     //Fire event to pause game
     LevelPaused?.Invoke();
 }