Ejemplo n.º 1
0
 public void Attack(int attackNumber)
 {
     if (canAction)
     {
         //Ground attacks.
         if (warriorMovementController.MaintainingGround())
         {
             Lock(true, true, true, 0, warriorTiming.TimingLock(warrior, ("attack" + attackNumber.ToString())));
             CmdAttack(transform, attackNumber);
             //Stationary attack.
             if (!warriorMovementController.isMoving)
             {
             }
         }
         //Trigger the animation.
     }
 }
Ejemplo n.º 2
0
 public void Attack(int attackNumber)
 {
     if (canAction)
     {
         //Ground attacks.
         if (warriorMovementController.MaintainingGround())
         {
             //Stationary attack.
             if (!warriorMovementController.isMoving)
             {
                 Lock(true, true, true, 0, warriorTiming.TimingLock(warrior, ("attack" + attackNumber.ToString())));
             }
         }
         //Trigger the animation.
         animator.SetInteger("Action", attackNumber);
         animator.SetTrigger("AttackTrigger");
     }
 }