Esempio n. 1
0
        private void OnSkillChanged(ref DefaultSkillEventParam _param)
        {
            if (this._heroInfoHud != null && _param.actor.handle.ObjID == this._heroInfoHud.PickedHeroID)
            {
                this._heroInfoHud.TheSkillHud.ValidateSkill(_param.slot);
                this._heroInfoHud.TheSkillHud.ValidateCD(_param.slot);
            }
            HeroInfoItem heroInfoItem = null;

            if (this._heroWrapDict.TryGetValue(_param.actor.handle.ObjID, out heroInfoItem))
            {
                heroInfoItem.ValidateSkill(_param.slot, _param.actor);
                heroInfoItem.ValidateCD(_param.slot, _param.actor);
            }
            if (WatchForm.IsNeedShowCampMidInterface())
            {
                HeroInfoSideItem heroInfoSideItem = null;
                if (this._heroWrapSideDict.TryGetValue(_param.actor.handle.ObjID, out heroInfoSideItem) && _param.slot == SkillSlotType.SLOT_SKILL_3)
                {
                    heroInfoSideItem.ValidateSkill3();
                }
            }
        }