Example #1
0
 public void Update()
 {
     if (Player.Grounded &&
         Player.Inputs.Action == DpadAction.Attack &&
         Cooldown.IsFree())
     {
         Cooldown.Start();
         Player.State = PlayerState.ATTACK;
     }
 }
Example #2
0
 public void Update()
 {
     if (Cooldown.IsFree())
     {
         Player.State = PlayerState.AFTER_ATTACK;
     }
     else
     {
         Cooldown.Update();
     }
 }