예제 #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);
 }