Пример #1
0
 public static void ApplyDamage(GameObject gameObject, int damage)
 {
     ExecuteEvents.Execute(gameObject, TakeDamageEventData.Create(damage), takeDamageHandler);
 }
Пример #2
0
 public void OnTakeDamage(TakeDamageEventData damage)
 {
     ApplyDamage(damage.damage);
 }