Пример #1
0
 public void dealDamage(EnemyAttributes enemy)
 {
     if (!attackCooldown)
     {
         GetComponent <Animator>().SetTrigger("punch");
         StartCoroutine(activateAttackCooldown());
         //Debug.Log("punch");
         int damageToDeal = melee;
         enemy.takeDamage(melee);
     }
 }