private List <EquipItemInfo> GetEquipList() { if (select_type == Equip_Select_Type.Pos) { return(EquipConfig.GetEquipDataListByPos((int)select_pos)); } else if (select_type == Equip_Select_Type.Level) { return(EquipConfig.GetEquipDataListByLv(select_level)); } return(null); }
private void OnClick(GameObject go) { switch (go.transform.name) { case "inheritBtn": if (select_equip_data == null) { return; } long inherit_id = GameConvert.LongConvert(select_equip_data.uuid); int need_euro = GetNeedEuro(); if (PlayerMediator.playerInfo.euro < need_euro) { GUIManager.SetPromptInfo(TextManager.GetUIString("equip_error_6"), null); return; } ServerCustom.instance.SendClientMethods(EquipProxy.CLIENT_EQUIP_INHERIT, EquipMediator.cur_select_player_id, select_equip_id, inherit_id); break; case "selectbg": List <EquipItemInfo> equip_list = EquipConfig.GetEquipDataListByLv(cur_strong_lv + 10); if (equip_list.Count <= 0) { GUIManager.SetPromptInfo(TextManager.GetSystemString("ui_system_24"), null); return; } EquipChooseMediator.SelectItem = new EquipChooseMediator.SelectItemHandle(SelectEquip); List <object> list = new List <object>(); EquipChooseData data = new EquipChooseData(EquipMediator.cur_select_player_id, Equip_Select_Type.Level, Equip_Pos.Null, cur_strong_lv + 10); list.Add(data); Facade.SendNotification(NotificationID.EquipChoose_Show, list); break; } }