//移除子技能 private void RemoveSubSkill(GSkillSpellLogic pSpellLogic) { if (pSpellLogic == null) { return; } List <int> pSkillList = GSkillDataManager.Instance.GetSubSkillList(pSpellLogic.GetSkillID()); if (pSkillList == null) { return; } foreach (var item in pSkillList) { RemoveSkill(item); } }
//增加子技能 private void AddSubSkill(GSkillSpellLogic pSpellLogic) { if (pSpellLogic == null) { return; } List <int> pSkillList = GSkillDataManager.Instance.GetSubSkillList(pSpellLogic.GetSkillID()); if (pSkillList == null) { return; } //todo 技能修正 //int nSlots = pSpellLogic.GetSkillSlots(); foreach (var item in pSkillList) { AddSkill(item /*, nSlots*/); } }