/// <summary> /// Removes a function of type RPGStatModifierEvent to the OnValueChange delagate. /// </summary> public void RemoveValueListener(StatValueChangeEvent func) { #if DEBUG_STAT_INFO UnityEngine.Debug.LogFormat("[Stat Category {0}]: Remove Value Listener", StatCategoryId); #endif _onValueChange -= func; }
/// <summary> /// Adds a function of type RPGStatModifierEvent to the OnValueChange delagate. /// </summary> public void AddValueListener(StatValueChangeEvent func) { #if DEBUG_STAT_INFO Debug.LogFormat("[Stat Category {0}]: Add Value Listener", StatCategoryId); #endif _onValueChange += func; }