示例#1
0
        protected override void Update()
        {
            base.Update();

            //buff的持续周期
            if (MBuffMeta.Duration > 0)
            {
                bool b = m_durationReg.Update();
                if (b)
                {
                    OnFinal();
                }
            }


            if (MBuffMeta.Period > 0)
            {
                bool b = m_dotReg.Update();
                if (b)
                {
                    OnPeriod();
                }
            }
            else if (CMathUtil.IsZero(MBuffMeta.Period))
            {
                OnPeriod();
            }
        }