Example #1
0
        void ExecuteTransition(FSMState toState)
        {
            DoBeforeLeaving();

            toState.enabled = true;

            toState.DoBeforeEntering();

            enabled = false;
        }
Example #2
0
 public FSMTransition(FSMState _toState, TransitionCondition _condition)
 {
     toState = _toState;
     condition = _condition;
 }