void ExecuteTransition(FSMState toState) { DoBeforeLeaving(); toState.enabled = true; toState.DoBeforeEntering(); enabled = false; }
public FSMTransition(FSMState _toState, TransitionCondition _condition) { toState = _toState; condition = _condition; }