Exemple #1
0
 void AttackTarget(GameObject obj)
 {
     if (obj.GetComponent <HealthComponent>().IsDead == false)
     {
         OnDamageMobEvent?.Invoke(obj, damageAmount);
         StartCoroutine(AttackTimer());
         OnMobAttack?.Invoke();
     }
 }
Exemple #2
0
 public void MobAttack(ScienceNum damage)
 {
     OnMobAttack?.Invoke(damage);
 }