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