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