public ToAdvance(StateMachine sm_)
 {
     sm          = sm_;
     targetState = sm.advanceState;
     condition   = new AdvanceCondition(sm);
     actions     = new IAction[1];
     actions[0]  = new AdvanceAction(sm);
 }
Example #2
0
 public AdvanceState(StateMachine sm_)
 {
     sm              = sm_;
     exitActions     = new IAction[1];
     exitActions[0]  = new AdvanceAction(sm);
     entryActions    = new IAction[1];
     entryActions[0] = new AdvanceAction(sm);
     actions         = new IAction[1];
     actions[0]      = new AdvanceAction(sm);
     transitions     = new ITransition[4];
     transitions[0]  = new ToInitial(sm);
     transitions[1]  = new ToProjectile(sm_);
     transitions[2]  = new ToJump(sm_);
     transitions[3]  = new ToAntiAir(sm_);
 }