Beispiel #1
0
 public void ButtonPressMainMenu()
 {
     // trigger event to unpause game
     GamePausingActionEvent.Trigger();
     // trivver event to leave current game session
     ExitGameSessionEvent.Trigger();
 }
Beispiel #2
0
 /// <summary>
 /// Pause/unpause game if player gave appropriate input.
 /// </summary>
 private void GamePausingIfInputted()
 {
     // if pause input given by player
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         // trigger pause attempt event
         GamePausingActionEvent.Trigger();
     }
 }
Beispiel #3
0
 public void ButtonPressUnpause()
 {
     // trigger event to unpause game
     GamePausingActionEvent.Trigger();
 }