public static void ApplyDamage(GameObject gameObject, int damage) { ExecuteEvents.Execute(gameObject, TakeDamageEventData.Create(damage), takeDamageHandler); }
public void OnTakeDamage(TakeDamageEventData damage) { ApplyDamage(damage.damage); }