public void TransitionState(CarState newState) { actualState.ExitState(); actualState = newState; actualState.EnterState(); }