Ejemplo n.º 1
0
 public StateChangeArgs(StateTraverser traverser, State startState, State endState, Signal signal, Transition transition)
 {
     Traverser        = traverser;
     StartState       = startState;
     EndState         = endState;
     TriggeringSignal = signal;
     TransitionUsed   = transition;
 }
Ejemplo n.º 2
0
 public void Start()
 {
     mTraverser = base.gameObject.GetSafeComponent <StateTraverser>();
     if (mTraverser != null)
     {
         mTransitionHistory = new List <Crumb>();
         mTraverser.EventDispatcher.AddListener <StateTraverserTransitionBeganEvent>(OnTransitionBegan);
     }
 }