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; }
private void OnUnpauseGame() { //Debug.Log("OnPauseGame"); UnpauseGameEvent?.Invoke(); }