コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: RPGStat.cs プロジェクト: jkpenner/RPGStatSystem
        /// <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;
        }