public void OnSelectScrollEvent(int skillid) { UseScrollSkillId = skillid; BagSelectFrame.gameObject.CustomSetActive(true); for (var i = 0; i < mDMono.transform.childCount; i++) { CombatSkillItem item = mDMono.transform.GetChild(i).GetMonoILRComponent <CombatSkillItem>(); item.UnSelect(); } SetTargetingInfo(skillid, -1); }
public void OnSkillSelectEvent(int skillID, Hotfix_LT.Data.eSkillType skillType) { UseScrollSkillId = 0; BagSelectFrame.gameObject.CustomSetActive(false); if (skillType == Hotfix_LT.Data.eSkillType.NORMAL) { SetTargetingInfo(skillID, _COMMON_TYPE); } else if (skillType == Hotfix_LT.Data.eSkillType.ACTIVE) { SetTargetingInfo(skillID, _SPECIAL_TYPE); } for (var i = 0; i < mDMono.transform.childCount; i++) { CombatSkillItem item = mDMono.transform.GetChild(i).GetMonoILRComponent <CombatSkillItem>(); if (item.Data.ID != skillID) { item.UnSelect(); } } }