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