Exemple #1
0
        private void RemoveTimer(int buffId, bool forceClean)
        {
            int timerId = 0;

            if (forceClean) //Buff下所有计时器全部清除
            {
                this.GetAllTimerId(buffId, ref tempTimerIdList);
                for (int i = 0; i < tempTimerIdList.Count; i++)
                {
                    timerId = tempTimerIdList[i];
                    timerService.DeleteTimer(timerId);
                }
            }
            else
            {
                timerId = GetTimerId(buffId, false);
                if (timerId != SkillDefine.NONE)
                {
                    timerService.DeleteTimer(timerId);
                    //SkillUtil.Log(string.Format("[BUFFMANAGER] Remove Timer  [BUffId->{0}] [TimeId->{1}] ])"
                    //  , buffId, timerId));
                }
            }
        }