示例#1
0
文件: BuffBase.cs 项目: mengtest/fs
        /// <summary>
        ///  1.BUFF的销毁,统一通过m_destroy控制,在管理类心跳中销毁
        ///  2.玩家身上的BUFF信息,也由BUFF类自己调用移除
        /// </summary>
        public virtual void Destroy()
        {
            //Debug.Log("销毁BUFF:" + m_buffData.logicId + "   uid:" + m_uid);

            m_destroy = true;

            // BUFF自己销毁时,如果玩家绑定了,就要移除
            if (m_caster != null)
            {
                m_caster.RemoveBuff(this);
            }
            if (m_rec != null)
            {
                m_rec.RemoveBuff(this);
            }
            CFrameTimeMgr.Inst.RemoveEvent(m_lifeEventHid);

            UpdateVO_ShowBuffEffect(m_rec, false, m_buffData.effectId, m_buffData.effectPoint, m_uid);
        }