Пример #1
0
 public void TransitionState(CarState newState)
 {
     actualState.ExitState();
     actualState = newState;
     actualState.EnterState();
 }