public void ButtonPressMainMenu() { // trigger event to unpause game GamePausingActionEvent.Trigger(); // trivver event to leave current game session ExitGameSessionEvent.Trigger(); }
/// <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(); } }
public void ButtonPressUnpause() { // trigger event to unpause game GamePausingActionEvent.Trigger(); }