Exemple #1
0
        /// <param name="buff">Buff对象</param>
        public void removeBuff(RuntimeBuff buff, bool force = false)
        {
            buffs.Remove(buff);
            _addedBuffs.Remove(buff);

            on(BaseBattlerCallback.BuffRemoved, buff, force);
        }
Exemple #2
0
        public RuntimeBuff addBuff(RuntimeBuff buff)
        {
            buffs.Add(buff);
            on(BaseBattlerCallback.BuffAdded, buff);
            _addedBuffs.Add(buff);

            return(buff);
        }
Exemple #3
0
 /// <summary>
 /// BUFF移除回调
 /// </summary>
 protected virtual void _onBuffRemoved(RuntimeBuff buff, bool force = false)
 {
 }
Exemple #4
0
 /// <summary>
 /// BUFF添加回调
 /// </summary>
 protected virtual void _onBuffAdded(RuntimeBuff buff)
 {
 }