/// <summary> /// 删除所有技能 /// </summary> public void SkillAllRemove() { if (SkillObjMap == null || SkillObjMap.Count == 0) { return; } List <int> skillIdList = new List <int>(); foreach (int skillid in SkillObjMap.Keys) { skillIdList.Add(skillid); } foreach (int skillid in skillIdList) { SkillBase skill = GetSkillById(skillid); skill.Forget(); } EndAllSkill(); }