private void SwitchState(GameState newState) { CurrentGameState?.End(); CurrentGameState = newState; CurrentGameState.Begin(); }
private void SwitchState(GameState newState) { CurrentGameState?.End(); CurrentGameState = newState; CurrentGameState.Begin(); }