Exemplo n.º 1
0
        private void Trigger(IBuff buff, BuffActionType type, int actionId)
        {
            if (buff.GetIdentifyId() == SkillDefine.NONE)
            {
                var param = buff.GetOwner().CreateBuffParam(this.mContext.GetSelfActor());
                buff.SetIdentifyId(param.IdentifyId);
            }

            // SkillUtil.Log(string.Format("[BUFFMANAGER] [NAME->{0}] [Trigger]->{1} [ActionID]->{2}   ",
            //    this.mContext.GetSelfActor().GetTransform().name, type, actionId));
            SkillActionTrigger.Instance.TriggerBuff(buff.GetOwner(), actionId, buff.GetIdentifyId());
        }