Esempio n. 1
0
 public void Attack(Unit enemy, int attackValue, AttackType attackType)
 {
     OnAttackAnimationStart?.Invoke(enemy.transform.position, attackType == AttackType.AoE);
     enemy.TakeDamage(attackValue, attackType);
     IsWeaponReloaded = false;
     StartCoroutine(ReloadCoroutine());
 }
 public void RaiseOnAttackAnimationStart() => OnAttackAnimationStart?.Invoke();