Пример #1
0
 public void AddOnReceiveHeal(UnityAction <float, GameplayStatics.DamageType> action)
 {
     if (m_OnReceiveHeal == null)
     {
         m_OnReceiveHeal = new GameplayStatics.DamageEvent();
     }
     m_OnReceiveHeal.AddListener(action);
 }
Пример #2
0
 public void AddOnTakeDamage(UnityAction <float, GameplayStatics.DamageType> action)
 {
     if (m_OnTakeDamage == null)
     {
         m_OnTakeDamage = new GameplayStatics.DamageEvent();
     }
     m_OnTakeDamage.AddListener(action);
 }