public void ChangeState(AbstractLightState state) { if (State != null) State.OnExit(); State = state; if (State != null) State.OnEnter(); }
public void ChangeState(AbstractLightState state) { if (State != null) { State.OnExit(); } State = state; if (State != null) { State.OnEnter(); } }