//移出角色,分两种,第一种需要移出的改属性,第二种不需要 public void RemoveFightRole(int removeIndex, EnumType.RoleUpdateType type) { RoleBase role = fightRoles[removeIndex]; if (role == null) { return; } if (type == EnumType.RoleUpdateType.RemoveFight) { role.RemoveAllEquip(); } fightRoles[removeIndex] = null; EventManager.ExecuteEvent(EventType.FightRoleUpdate, new UpdateRoleData(removeIndex, type, role)); }