public void AddOnReceiveHeal(UnityAction <float, GameplayStatics.DamageType> action) { if (m_OnReceiveHeal == null) { m_OnReceiveHeal = new GameplayStatics.DamageEvent(); } m_OnReceiveHeal.AddListener(action); }
public void AddOnTakeDamage(UnityAction <float, GameplayStatics.DamageType> action) { if (m_OnTakeDamage == null) { m_OnTakeDamage = new GameplayStatics.DamageEvent(); } m_OnTakeDamage.AddListener(action); }