public void SwitchState(State state) { if (CurrentState != null) CurrentState.End(); CurrentState = state; if (CurrentState != null) CurrentState.Start(); }
public abstract void Draw(State state);
public Transition(Engine framework, State from, State to) : base(framework) { InitialState = from; TargetState = to; }