Example #1
0
 public override void Attack()
 {
     if (Input.GetButtonDown("Action") && !attack)
     {
         moveX = 0;
         moveZ = 0;
         anim.SetTrigger("Attack");
         attack = true;
         StartCoroutine(Wait());
         if (Alvo != null)
         {
             Alvo.HealOrDamage(20, 0);
         }
     }
 }