void SaoDangSucess(BaseHttpRequest request, BaseResponse response) { ComLoading.Close(); if (response.status != BaseResponse.ERROR) { SaoDangResponse r = response as SaoDangResponse; HttpRequest htp = request as HttpRequest; SaoDangParam param = htp.ParamMem as SaoDangParam; if (r != null && r.data != null) { BattleSequence[] bsquesce = r.data.sweepList; List <BattleSequence> list_data = new List <BattleSequence> (); foreach (BattleSequence data in bsquesce) { list_data.Add(data); } JCPVESaoDangPanel.OpenUI(list_data); //同步通过次数 NewFloor floor = Core.Data.newDungeonsManager.GetFloorData(param.doorId); floor.passTimes = r.data.passCount; RefreshPanel(floor); } } else { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getNetworkErrorString(response.errorCode)); } }
public static JCPVESaoDangPanel OpenUI(List <BattleSequence> listdata) { UnityEngine.Object obj = PrefabLoader.loadFromPack("JC/JCPVESaoDangPanel"); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; RED.AddChild(go, DBUIController.mDBUIInstance._TopRoot); _this = go.GetComponent <JCPVESaoDangPanel>(); _this.SaoDangData = listdata.Count; _this.listdata = listdata; _this.CollectLevelUp(); } return(_this); }
public void OnBtnOK() { ActivityNetController.CheckUnGotGift(); // yangchengguang 升级的时候检测 是否满足活动条件 if (BuildScene.mInstance != null) { List <BaseBuildingData> list = Core.Data.BuildingManager.GetLockBuildByLevel(targetLv); if (list != null) { foreach (BaseBuildingData build in list) { Building bd = Core.Data.BuildingManager.GetBuildFromBagByNum(build.id); if (bd != null) { if (BuildScene.mInstance != null) { BuildScene.mInstance.UpdateBuildByNum(bd.RTData.num); } } else { RED.LogWarning(bd.RTData.id + "not find in buildmgr"); } } } } UserLevelInfo curInfo = Core.Data.playerManager.curConfig; UserLevelInfo preInfo = Core.Data.playerManager.GetUserLvlInfo(Core.Data.playerManager.Lv - 1); if (curInfo.petSlot > preInfo.petSlot) { if (TeamUI.mInstance != null) { TeamUI.mInstance.RefreshSlot(curInfo.petSlot - 1); } } #region 引导强制返回界面 if (Core.Data.guideManger.isGuiding) { JCPVESaoDangPanel.SafeDelete(); JCPVEPlotDes.SafeDelete(); JCPVEExpOrGem.SafeDelete(); Core.Data.guideManger.Init(); } #endregion //如果在阵容界面不要刷新,因为阵容界面没有 if (TeamUI.mInstance == null) { DBUIController.mDBUIInstance.RefreshUserInfo(); } if (Core.Data.playerManager.RTData.curVipLevel > Core.Data.temper.mPreVipLv) { LevelUpUIOther.OpenUI(); LevelUpUIOther.mInstance.showVipUpdate(Core.Data.playerManager.RTData.curVipLevel); Core.Data.temper.mPreVipLv = Core.Data.playerManager.RTData.curVipLevel; } if (targetLv == 20) { //sync team info MailReveicer.Instance.SendFightMegRequest(100); } DestroyUI(); }
void DestroyMe() { Destroy(gameObject); _this = null; }