void ClearUI() { WndManager.DestoryDialogNow <AddSkillWnd>(); WndManager.DestoryDialogNow <HeroIntroduceWnd>(); U3DUtil.DestroyAllChild(MyHead.SoldierPos.gameObject); for (int i = 0; i < MyHead.SoldierEquipList.Length; i++) { //不删除晋升飞行的装备对象 U3DUtil.DestroyAllChild(MyHead.SoldierEquipList[i], "Clone"); } m_lCanEquips.Clear(); }