Exemple #1
0
 public override void stateTransitions()
 {
     base.stateTransitions();
     //These classes will be phased out as time goes on. Until then, we need to just exit early if we're in the builder since these don't actually use Subactions
     if (isInBuilder)
     {
         return;
     }
     //if (actor.GetControllerButton("Shield"))
     //actor.doAction("AirDodge");
     //if (actor.GetControllerButton("Attack")) //&& actor.CheckSmash("Up")
     //actor.doAction("UpSmash")
     //if (actor.GetControllerButton("Special")) //&& actor.CheckSmash("Up")
     //actor.doAction("UpSpecial")
     if (current_frame <= jump_frame)
     {
         StateTransitions.JumpState(actor.GetAbstractFighter());
     }
     if (current_frame > jump_frame)
     {
         StateTransitions.AirState(actor.GetAbstractFighter());
     }
     if (current_frame > last_frame)
     {
         actor.BroadcastMessage("DoAction", "Fall");
     }
 }
Exemple #2
0
 public override void stateTransitions()
 {
     base.stateTransitions();
     //These classes will be phased out as time goes on. Until then, we need to just exit early if we're in the builder since these don't actually use Subactions
     if (isInBuilder)
     {
         return;
     }
     StateTransitions.AirState(actor.GetAbstractFighter());
     StateTransitions.CheckLedges(actor.GetAbstractFighter());
 }