public static void SwithShowMe(int id) { employeeInstId = id; NetWaitUI.HideMe(); UIBase.SwitchShowPanelByName(UIASSETS_ID.UIASSETS_JinjieOkPanel); }
public void InitOpenGatherList(uint num, COM_Gather[] list) { maxNum = num; for (int i = 0; i < list.Length; i++) { OpenGatherItemList.Add(list[i]); if (UpdateGatheEvent != null) { UpdateGatheEvent(list[i]); } } isInitGatherList = true; if (openInitGatherList) { openInitGatherList = false; NetWaitUI.HideMe(); if (minType != 0 && minId != 0) { //SkillViewUI.ShowMe(1,minType,minId); } else { //SkillViewUI.SwithShowMe(1,minType,minId); } } }
public static void ShowMe(int id) { employeeInstId = id; NetWaitUI.HideMe(); UIBase.AsyncLoad(UIASSETS_ID.UIASSETS_JinjieOkPanel); }
private void OnInBattleBtn(ButtonScript obj, object args, int param1, int param2) { if (GamePlayer.Instance.GetEmployeeIsBattle(curEmployee.InstId)) { return; } List <Employee> emp = GamePlayer.Instance.GetBattleEmployees(); for (int i = 0; i < emp.Count; i++) { if (emp[i] == null) { continue; } if (emp[i].InstName == curEmployee.InstName) { PopText.Instance.Show(LanguageManager.instance.GetValue("samehuoban")); return; } } if (GamePlayer.Instance.GetBattleEmployees().Count >= 4 || !EmployessSystem.instance.GetBattleEmpty()) { PopText.Instance.Show(LanguageManager.instance.GetValue("meiyouweizhi")); return; } NetConnection.Instance.setBattleEmp((uint)curEmployee.InstId, EmployeesBattleGroup.EBG_GroupOne, true); NetWaitUI.ShowMe(); }
public void InitBag(COM_Item[] items) { _BagItems = new COM_Item[100]; _BabyEquips.Clear(); for (int j = 0; j < _BagItems.Length; j++) { _BagItems[j] = null; } ItemData iData = null; for (int i = 0; i < items.Length; i++) { _BagItems[items[i].slot_] = items[i]; iData = ItemData.GetData((int)items[i].itemId_); if (iData.mainType_ == ItemMainType.IMT_BabyEquip) { _BabyEquips.Add(items[i]); } QuestSystem.CheckItemQuest(items[i].itemId_); } isBabyEquipDirty_ = true; isInitBag = true; if (isOpenInitBag) { isOpenInitBag = false; NetWaitUI.HideMe(); BagUI.SwithShowMe(); } isDirty_ = true; }
void OnDoubleClickEmployee(GameObject obj) { bDouble = true; StopCoroutine("DelayOneClick"); if (GamePlayer.Instance.GetEmployeeIsBattle(_employee.InstId)) { return; } if (GamePlayer.Instance.GetBattleEmployees().Count >= _conBattleNum) { PopText.Instance.Show(LanguageManager.instance.GetValue("shangzhenyiman")); return; } if (GetSameName(_employee.InstName)) { PopText.Instance.Show(LanguageManager.instance.GetValue("samehuoban")); return; } int instId = _employee.InstId; int assid = _employee.GetIprop(PropertyType.PT_AssetId); NetConnection.Instance.setBattleEmp((uint)instId, (EmployeesBattleGroup)_selectEmpGroup, true); NetWaitUI.ShowMe(); }
private void OnOkFire(ButtonScript obj, object args, int param1, int param2) { NetConnection.Instance.delEmployeeSoul(_fireEmployees [0], uint.Parse(fireNumLab.text)); firePanel.gameObject.SetActive(false); _fireEmployees.Clear(); NetWaitUI.ShowMe(); }
void OnUpdateMailEvent(COM_Mail mail) { NetWaitUI.HideMe(); if (mail.mailId_ == _selectMail.mailId_) { _selectMail = mail; UpdateList(); updateMailInfo(mail); } }
private void OnDownBattleEmployee(ButtonScript obj, object args, int param1, int param2) { EmployeeCellUI cell = obj.transform.parent.GetComponent <EmployeeCellUI> (); if (cell == null) { return; } posCellList[param1].gameObject.SetActive(false); NetConnection.Instance.setBattleEmp((uint)cell.Employee.InstId, (EmployeesBattleGroup)_selectEmpGroup, false); NetWaitUI.ShowMe(); }
public static void ShowMe() { if (!GamePlayer.Instance.isInitEmployees) { TeamSystem.openInitUI = true; TeamSystem.UIShowType = 1; NetConnection.Instance.requestEmployees(); NetWaitUI.ShowMe(); } else { UIBase.AsyncLoad(UIASSETS_ID.UIASSETS_TeamPanel, false); } }
public static void SwithShowMe() { if (!GamePlayer.Instance.isInitEmployees) { TeamSystem.openInitUI = true; TeamSystem.UIShowType = 2; NetConnection.Instance.requestEmployees(); NetWaitUI.ShowMe(); } else { UIBase.SwitchShowPanelByName(UIASSETS_ID.UIASSETS_TeamPanel); } }
void OnClickMask(GameObject go) { if (GamePlayer.Instance.isInBattle) { PopText.Instance.Show(LanguageManager.instance.GetValue("battlecannot"), PopText.WarningType.WT_Warning, true); return; } if (BagSystem.instance.GetEmptySlotNum() == 0) { PopText.Instance.Show(LanguageManager.instance.GetValue("EN_OpenBaoXiangBagFull"), PopText.WarningType.WT_Warning); return; } MoreCardsDrawData mcdd = MoreCardsDrawData.GetData(MoreActivityData.GetCardsData().contents_.Length + 1); if (mcdd == null) { return; } COM_Item item = BagSystem.instance.GetItemByItemId((uint)needItem); if (item == null || item.stack_ < mcdd.cost_) { PopText.Instance.Show(string.Format(LanguageManager.instance.GetValue("notEnoughItemCount"), needItemName)); return; } if (crtIdx != -1) { return; } UIEventListener listener = UIEventListener.Get(go); listener.onClick -= OnClickMask; int idx = (int)listener.parameter; if (idx >= 0 && idx < cards.Length) { if (cards[idx].isNew()) { drawCardObj = go; crtIdx = idx; NetConnection.Instance.openCard((ushort)idx); NetWaitUI.ShowMe(); } } }
private void OnEmployeeCell(ButtonScript obj, object args, int param1, int param2) { EmployeeCellUI cell = obj.GetComponent <EmployeeCellUI> (); if (cell == null || cell.Employee == null) { return; } uint[] emps = GamePlayer.Instance.GetEmployeesBattles(_selectEmpGroup); int hNum = 0; for (int i = 0; i < emps.Length; i++) { if (emps[i] != 0) { hNum++; } } if (hNum >= _conBattleNum) { PopText.Instance.Show(LanguageManager.instance.GetValue("shangzhenyiman")); return; } if (GetSameName(cell.Employee.InstName)) { PopText.Instance.Show(LanguageManager.instance.GetValue("samehuoban")); return; } if (EmployeeTaskSystem.instance.IsTaskEmp(cell.Employee.InstId)) { PopText.Instance.Show(LanguageManager.instance.GetValue("huanbanrenwuzhong")); return; } _employee = GamePlayer.Instance.GetEmployeeById(cell.Employee.InstId); EmployessSystem.instance.CurEmployee = _employee; NetConnection.Instance.setBattleEmp((uint)_employee.InstId, (EmployeesBattleGroup)_selectEmpGroup, true); NetWaitUI.ShowMe(); //_employee = cell.Employee; //if (_employee == null) // return; //_employee = GamePlayer.Instance.GetEmployeeById (_employee.InstId); //EmployessSystem.instance.CurEmployee = _employee; //bDouble = false; // EmployeeListUI.ShowMe (); //StartCoroutine (DelayOneClick ()); }
public static void SwithShowMe(int pid = 1) { panelId = pid; if (!GamePlayer.Instance.isInitEmployees) { EmployessSystem.instance.openEmployeeType = pid; EmployessSystem.instance.openUIEmployee = true; NetConnection.Instance.requestEmployees(); NetWaitUI.ShowMe(); } else { UIBase.SwitchShowPanelByName(UIASSETS_ID.UIASSETS_HuobanPanel); } }
public void InitOpenEquip(uint[] arr) { openEquipList.Clear(); for (int i = 0; i < arr.Length; i++) { openEquipList.Add(arr[i]); } isInit = true; if (isOpenInit) { isOpenInit = false; NetWaitUI.HideMe(); CompoundUI.SwithShowMe(bTiSheng); } }
public static void SwithShowMe(bool ts = false) { if (!CompoundSystem.instance.isInit) { CompoundSystem.instance.IsOpenInit = true; CompoundSystem.instance.bTiSheng = ts; NetConnection.Instance.requestCompound(); NetWaitUI.ShowMe(); } else { _bTiSheng = ts; UIBase.SwitchShowPanelByName(UIASSETS_ID.UIASSETS_SkillTabPanel); } }
void OnPressEmp(GameObject go, bool isPress) { crtSelectOrigin = go; if (!isPress) { if (crtSelect == null) { return; } if (crtSelect != null) { GameObject.Destroy(crtSelect); crtSelect = null; } if (InCellRange(crtMouseUIPos)) { if (_employee == null) { isPress_ = isPress; return; } if (GamePlayer.Instance.GetEmployeeIsBattle(_employee.InstId)) { isPress_ = isPress; return; } if (GetSameName(_employee.InstName)) { PopText.Instance.Show(LanguageManager.instance.GetValue("samehuoban")); isPress_ = isPress; return; } int instId = _employee.InstId; int assid = _employee.GetIprop(PropertyType.PT_AssetId); if (GamePlayer.Instance.GetBattleEmployees().Count >= _conBattleNum) { PopText.Instance.Show(LanguageManager.instance.GetValue("shangzhenyiman")); isPress_ = isPress; return; } NetConnection.Instance.setBattleEmp((uint)instId, (EmployeesBattleGroup)_selectEmpGroup, true); NetWaitUI.ShowMe(); } } isPress_ = isPress; }
public void OnUpdateBattle(Employee inst, int grop) { NetWaitUI.HideMe(); if (inst.isForBattle_) { if (curEmployee.InstId == curEmployee.InstId) { inBattleBtn.isEnabled = false; battleBtnLab.text = LanguageManager.instance.GetValue("yishangzhen"); //PopText.Instance.Show(LanguageManager.instance.GetValue("yishangzhen")); } } ShowProp(); }
public void SwithShowMe(int type = 1, int id = 0) { if (!GatherSystem.instance.isInitGatherList) { GatherSystem.instance.minType = type; GatherSystem.instance.minId = id; GatherSystem.instance.openInitGatherList = true; NetConnection.Instance.initminig(); NetWaitUI.ShowMe(); } else { minType = type; minId = id; //UIBase.SwitchShowPanelByName (UIASSETS_ID.UIASSETS_GatherPanel); } }
public static void ShowMe(int pid = 1) { GuideManager.Instance.ClearMask(); if (!GamePlayer.Instance.isInitStorageItem || !GamePlayer.Instance.isInitStorageBaby) { BankSystem.instance.isOpeninitBank = true; BankSystem.instance.isOpenBankType = pid; NetConnection.Instance.requestStorage(StorageType.ST_Item); NetConnection.Instance.requestStorage(StorageType.ST_Baby); NetWaitUI.ShowMe(); } else { panelId = pid; UIBase.AsyncLoad(UIASSETS_ID.UIASSETS_BankPanel); } }
public void InitTaskList(COM_EmployeeQuestInst[] list) { _questlist.Clear(); for (int i = 0; i < list.Length; i++) { _questlist.Add(list[i]); } if (!GamePlayer.Instance.isInitEmployees) { EmployessSystem.instance.openUIEmpTask = true; NetConnection.Instance.requestEmployees(); NetWaitUI.ShowMe(); } else { EmployeeTaskUI.SwithShowMe(); NetWaitUI.HideMe(); } SetTaskTime(); }
public void ShowMe(int type = 1, int id = 0) { if (!GatherSystem.instance.isInitGatherList) { GatherSystem.instance.minType = type; GatherSystem.instance.minId = id; GatherSystem.instance.openInitGatherList = true; NetConnection.Instance.initminig(); NetWaitUI.ShowMe(); } minType = type; minId = id; //UIBase.AsyncLoad(UIASSETS_ID.UIASSETS_GatherPanel); if (minType == (int)MineType.MT_JinShu) { itemBtnImg0.gameObject.SetActive(true); itemBtnImg1.gameObject.SetActive(false); itemBtnImg2.gameObject.SetActive(false); SelectCaiKuang(); } else if (minType == (int)MineType.MT_BuLiao) { itemBtnImg0.gameObject.SetActive(false); itemBtnImg1.gameObject.SetActive(false); itemBtnImg2.gameObject.SetActive(true); SelectZhibu(); } else if (minType == (int)MineType.MT_MuCai) { itemBtnImg0.gameObject.SetActive(false); itemBtnImg1.gameObject.SetActive(true); itemBtnImg2.gameObject.SetActive(false); SelectFamu(); } }
private void LoadUI(UIASSETS_ID id, int num) { subUiResPath = GlobalInstanceFunction.Instance.GetAssetsName((int)id, AssetLoader.EAssetType.ASSET_UI); if (subUIs_ == null) { subUIs_ = new List <string>(); subUIs_.Add(subUiResPath); } else { if (!subUIs_.Contains(subUiResPath)) { subUIs_.Add(subUiResPath); } } UIAssetMgr.LoadUI(subUiResPath, (Assets, paramData) => { if (hasDestroy) { UIAssetMgr.DeleteAsset(subUiResPath); return; } if (null == Assets || null == Assets.mainAsset) { return; } GameObject go = (GameObject)GameObject.Instantiate(Assets.mainAsset) as GameObject; if (this == null && !gameObject.activeSelf) { Destroy(go); } go.transform.parent = back.transform; go.transform.localPosition = Vector3.zero; go.transform.localScale = Vector3.one; if (num == 1) { familyConstructionObj = go; if (Guildbtns[num].isEnabled) { familyConstructionObj.SetActive(false); } } else if (num == 2) { familyShopingObj = go; if (Guildbtns[num].isEnabled) { familyShopingObj.SetActive(false); } } else if (num == 3) { familyZhufuObj = go; if (Guildbtns[num].isEnabled) { familyZhufuObj.SetActive(false); } } else if (num == 4) { familyZhufuOHD = go; if (Guildbtns[num].isEnabled) { familyZhufuOHD.SetActive(false); } } if (num == 5) { familyMessageObj = go; if (Guildbtns[num].isEnabled) { familyMessageObj.SetActive(false); } } UIManager.Instance.AdjustUIDepth(go.transform); NetWaitUI.HideMe(); UIManager.Instance.AdjustUIDepth(go.transform); } , null); }
void UpdateEmployeeEvent(Employee emp, int grop) { NetWaitUI.HideMe(); AddScrollViewItem(GamePlayer.Instance.EmployeeList); }
public void OnUpdateBattle(Employee inst, int group) { NetWaitUI.HideMe(); if (inst.isForBattle_ && group == _selectEmpGroup) { if (GetInBattle(inst.InstId)) { foreach (GameObject i in posCellList) { if (i.GetComponent <EmployeeCellUI>().Employee.InstId == inst.InstId) { i.GetComponent <EmployeeCellUI>().Employee = inst; i.GetComponent <EmployeeCellUI>().professionImg.spriteName = ((JobType)inst.GetIprop(PropertyType.PT_Profession)).ToString(); i.GetComponent <EmployeeCellUI>().pinzhi.spriteName = EmployessSystem.instance.GetQualityBack((int)inst.quality_); i.GetComponent <EmployeeCellUI>().backImg.spriteName = EmployessSystem.instance.GetCellQualityBack((int)inst.quality_); i.GetComponent <EmployeeCellUI>().backImg.GetComponent <UIButton>().normalSprite = EmployessSystem.instance.GetCellQualityBack((int)inst.quality_); i.GetComponent <EmployeeCellUI>().qAddImgBack.spriteName = EmployessSystem.instance.GetAddQualityNUmBack((int)inst.quality_); i.GetComponent <EmployeeCellUI>().qAddImg.spriteName = LanguageManager.instance.GetValue(inst.quality_.ToString()); i.GetComponent <EmployeeCellUI>().fightingNumLab.text = (inst.GetIprop(PropertyType.PT_FightingForce)).ToString(); break; } } return; } if (posCellList.Count >= 4) { return; } GuideManager.Instance.ProcEvent(ScriptGameEvent.SGE_PartnerForBattle); int instId = inst.InstId; int assid = EmployeeData.GetData(inst.GetIprop(PropertyType.PT_TableId)).asset_id; GameObject clone = GameObject.Instantiate(biaoqian) as GameObject; clone.GetComponent <EmployeeCellUI>().Employee = inst; clone.GetComponent <EmployeeCellUI>().nameLab.text = inst.InstName; UIManager.SetButtonEventHandler(clone.transform.FindChild("down").gameObject, EnumButtonEvent.OnClick, OnDownBattleEmployee, posCellList.Count, 0); HeadIconLoader.Instance.LoadIcon(EntityAssetsData.GetData(EmployeeData.GetData(inst.GetIprop(PropertyType.PT_TableId)).asset_id).assetsIocn_, clone.GetComponent <EmployeeCellUI>().icon); if (!_icons.Contains(EntityAssetsData.GetData(EmployeeData.GetData(inst.GetIprop(PropertyType.PT_TableId)).asset_id).assetsIocn_)) { _icons.Add(EntityAssetsData.GetData(EmployeeData.GetData(inst.GetIprop(PropertyType.PT_TableId)).asset_id).assetsIocn_); } clone.GetComponent <EmployeeCellUI>().professionImg.spriteName = ((JobType)inst.GetIprop(PropertyType.PT_Profession)).ToString(); clone.GetComponent <EmployeeCellUI>().fightingNumLab.text = (inst.GetIprop(PropertyType.PT_FightingForce)).ToString(); clone.GetComponent <EmployeeCellUI>().pinzhi.spriteName = EmployessSystem.instance.GetQualityBack((int)inst.quality_); clone.GetComponent <EmployeeCellUI>().backImg.spriteName = EmployessSystem.instance.GetCellQualityBack((int)inst.quality_); clone.GetComponent <EmployeeCellUI>().backImg.GetComponent <UIButton>().normalSprite = EmployessSystem.instance.GetCellQualityBack((int)inst.quality_); clone.GetComponent <EmployeeCellUI>().qAddImgBack.spriteName = EmployessSystem.instance.GetAddQualityNUmBack((int)inst.quality_); clone.GetComponent <EmployeeCellUI>().qAddImg.spriteName = LanguageManager.instance.GetValue(inst.quality_.ToString()); clone.SetActive(true); clone.transform.parent = posArr[posCellList.Count]; posCellList.Add(clone); clone.transform.localPosition = Vector3.zero; clone.transform.localScale = Vector3.one; //List<Employee> emps = GamePlayer.Instance.GetBattleEmployees (); /*for(int i =0;i<drawImg.Count;i++) * { * drawImg[i].gameObject.SetActive(false); * } * * if(emps.Count < 4) * { * for(int j = 0;j <emps.Count +1;j++) * { * drawImg[j].gameObject.SetActive(true); * } * } */ } else { if (!GetInBattle(inst.InstId)) { return; } _isUpdataBattleList = false; UpdataBattleEmployee(_selectEmpGroup); } UpdateBattleBack(); uint[] empGroups = GamePlayer.Instance.GetEmployeesBattles(group); //int index = 0; int num = 0; for (int g = 0; g < empGroups.Length; g++) { if (empGroups[g] == 0) { continue; } Employee emp = GamePlayer.Instance.GetEmployeeById((int)empGroups[g]); if (emp != null) { num += emp.GetIprop(PropertyType.PT_FightingForce); } } battleNumLab.text = num.ToString(); }
private void LoadUI(UIASSETS_ID id, int num) { subUiResPath = GlobalInstanceFunction.Instance.GetAssetsName((int)id, AssetLoader.EAssetType.ASSET_UI); if (subUIs_ == null) { subUIs_ = new List <string>(); subUIs_.Add(subUiResPath); } else { if (!subUIs_.Contains(subUiResPath)) { subUIs_.Add(subUiResPath); } } AssetLoader.LoadAssetBundle(subUiResPath, AssetLoader.EAssetType.ASSET_UI, (Assets, paramData) => { if (hasDestroy) { //AssetInfoMgr.Instance.DecRefCount(subUiResPath, true); return; } if (null == Assets || null == Assets.mainAsset) { return; } GameObject go = (GameObject)GameObject.Instantiate(Assets.mainAsset) as GameObject; if (this == null && !gameObject.activeSelf) { Destroy(go); } go.transform.parent = this.panel.transform; go.transform.position = Vector3.zero; go.transform.localScale = Vector3.one; if (num == 1) { posObj = go; if (PropertyBtn.isEnabled) { posObj.SetActive(false); } } else if (num == 2) { reductionObj = go; if (reductionBtn.isEnabled) { reductionObj.SetActive(false); } } else if (num == 3) { QianghuaObj = go; if (qianghuaBtn.isEnabled) { QianghuaObj.SetActive(false); } } else if (num == 4) { ReformObj = go; if (ReformBtn.isEnabled) { ReformObj.SetActive(false); } } else if (num == 6) { epuObj = go; if (zhuangbeiBtn.isEnabled) { epuObj.SetActive(false); } } UIManager.Instance.AdjustUIDepth(go.transform, true, 1000); NetWaitUI.HideMe(); // UIManager.Instance.AdjustUIDepth(go.transform); //stateBtn.GetComponent<BoxCollider> ().enabled = true; } , null); }
void OnClickbtn(ButtonScript obj, object args, int param1, int param2) { if (OnoffmakeOk != null) { OnoffmakeOk(); } if (UpdateBabyInfoOk != null) { UpdateBabyInfoOk(); } TabsSelect(param1); if (param1 == 0) { isState = true; tishiLabel.gameObject.SetActive(true); if (MainbabyListUI.babyObj != null) { MainbabyListUI.babyObj.SetActive(true); } zhongzuObj.SetActive(true); listObj.SetActive(true); stateUI.SetActive(true); if (posObj != null) { posObj.SetActive(false); } if (reductionObj != null) { reductionObj.SetActive(false); } if (ReformObj != null) { ReformObj.SetActive(false); } if (posObj != null) { posObj.SetActive(false); } if (epuObj != null) { epuObj.SetActive(false); } if (QianghuaObj != null) { QianghuaObj.SetActive(false); } NetWaitUI.HideMe(); Babypdate(); MainbabyReformUI.isMainbabyReformUI = false; } else if (param1 == 1) { batstate = 1; Babypdate(); isState = false; tishiLabel.gameObject.SetActive(false); if (MainbabyListUI.babyObj != null) { MainbabyListUI.babyObj.SetActive(false); } zhongzuObj.SetActive(false); if (QianghuaObj != null) { QianghuaObj.SetActive(false); } if (reductionObj != null) { reductionObj.SetActive(false); } if (ReformObj != null) { ReformObj.SetActive(false); } if (epuObj != null) { epuObj.SetActive(false); } stateUI.SetActive(false); listObj.SetActive(true); if (posObj != null) { posObj.SetActive(true); NetWaitUI.HideMe(); } else { NetWaitUI.ShowMe(); LoadUI(UIASSETS_ID.UIASSETS_mainbabyshuxingPanel, 1); loadUIList.Add((int)UIASSETS_ID.UIASSETS_mainbabyshuxingPanel); } MainbabyReformUI.isMainbabyReformUI = false; } else if (param1 == 2) { batstate = 2; isState = false; tishiLabel.gameObject.SetActive(false); if (MainbabyListUI.babyObj != null) { MainbabyListUI.babyObj.SetActive(false); } if (posObj != null) { posObj.SetActive(false); } if (ReformObj != null) { ReformObj.SetActive(false); } if (QianghuaObj != null) { QianghuaObj.SetActive(false); } if (epuObj != null) { epuObj.SetActive(false); } stateUI.SetActive(false); listObj.SetActive(true); if (reductionObj != null) { reductionObj.SetActive(true); NetWaitUI.HideMe(); } else { NetWaitUI.ShowMe(); LoadUI(UIASSETS_ID.UIASSETS_huanyuanPanel, 2); loadUIList.Add((int)UIASSETS_ID.UIASSETS_huanyuanPanel); } MainbabyReformUI.isMainbabyReformUI = false; } else if (param1 == 3) { batstate = 3; isState = false; tishiLabel.gameObject.SetActive(false); if (MainbabyListUI.babyObj != null) { MainbabyListUI.babyObj.SetActive(false); } if (posObj != null) { posObj.SetActive(false); } if (ReformObj != null) { ReformObj.SetActive(false); } stateUI.SetActive(false); if (epuObj != null) { epuObj.SetActive(false); } if (reductionObj != null) { reductionObj.SetActive(false); } listObj.SetActive(true); if (QianghuaObj != null) { QianghuaObj.SetActive(true); NetWaitUI.HideMe(); } else { NetWaitUI.ShowMe(); LoadUI(UIASSETS_ID.UIASSETS_QianghuaPanel, 3); } MainbabyReformUI.isMainbabyReformUI = false; } else if (param1 == 4) { batstate = 4; isState = false; tishiLabel.gameObject.SetActive(false); if (MainbabyListUI.babyObj != null) { MainbabyListUI.babyObj.SetActive(false); } if (epuObj != null) { epuObj.SetActive(false); } if (posObj != null) { posObj.SetActive(false); } if (reductionObj != null) { reductionObj.SetActive(false); } if (QianghuaObj != null) { QianghuaObj.SetActive(false); } stateUI.SetActive(false); listObj.SetActive(false); if (ReformObj != null) { ReformObj.SetActive(true); NetWaitUI.HideMe(); } else { NetWaitUI.ShowMe(); LoadUI(UIASSETS_ID.UIASSETS_babygaizaoPanel, 4); loadUIList.Add((int)UIASSETS_ID.UIASSETS_babygaizaoPanel); } MainbabyReformUI.isMainbabyReformUI = true; } else if (param1 == 6) { batstate = 6; isState = false; tishiLabel.gameObject.SetActive(false); if (MainbabyListUI.babyObj != null) { MainbabyListUI.babyObj.SetActive(false); } if (posObj != null) { posObj.SetActive(false); } if (reductionObj != null) { reductionObj.SetActive(false); } if (QianghuaObj != null) { QianghuaObj.SetActive(false); } if (ReformObj != null) { ReformObj.SetActive(false); } stateUI.SetActive(false); listObj.SetActive(true); if (epuObj != null) { epuObj.SetActive(true); NetWaitUI.HideMe(); } else { NetWaitUI.ShowMe(); LoadUI(UIASSETS_ID.UIASSETS_BabyEquPanle, 6); loadUIList.Add((int)UIASSETS_ID.UIASSETS_BabyEquPanle); } MainbabyReformUI.isMainbabyReformUI = false; } }