private void ChangeState(GameState newState) { if (CurrentState != null) { CurrentState.TransitionOut(this); } CurrentState = newState; newState.TransitionIn(this); }