Пример #1
0
 public void OnGameUnpause(UnpauseGameEvent unpauseGameEvent)
 {
     Debug.Log($"GameStateManager handling UnpauseGameEvent. CurrentState={State}, Event={unpausedState}");
     if (State != MainGameState.GAME_PAUSED)
     {
         throw new InvalidOperationException("UnpauseGameEvent should only occur during GAME_PAUSED state");
     }
     State = unpausedState;
 }
Пример #2
0
 private void OnUnpauseGame()
 {
     //Debug.Log("OnPauseGame");
     UnpauseGameEvent?.Invoke();
 }