Пример #1
0
        public void SwitchState(State state)
        {
            if (CurrentState != null) CurrentState.End();

            CurrentState = state;

            if (CurrentState != null) CurrentState.Start();
        }
Пример #2
0
 public abstract void Draw(State state);
Пример #3
0
 public Transition(Engine framework, State from, State to)
     : base(framework)
 {
     InitialState = from;
     TargetState = to;
 }