コード例 #1
0
ファイル: Jump.cs プロジェクト: mwaitzman/TussleOverdrive
 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");
     }
 }