/// <summary> /// 提示框按钮 用于跳转 /// </summary> void OnGoToStore() { UI_HomeControler.Inst.ReMoveUI(UI_HeroInfo.UI_ResPath); UI_HomeControler.Inst.ReMoveUI(UI_RechargeBox.UI_ResPath); UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.SKIN); UI_HeroListManager._instance.GetCard3Dmodel().transform.rotation = new Quaternion(0, 0, 0, 0); UI_HeroListManager._instance.GetCard3Dmodel().rigidbody.isKinematic = true; }
public override void OnButtonClick() { base.OnButtonClick(); switch (_GotoType) { case 1: case 2: case 3: case 13: case 14: //关卡选择界面 UI_HomeControler.Inst.AddUI(UI_SelectLevelMgrNew.UI_ResPath); break; case 16: //宝藏遗迹 GameObject panel = UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); if (panel) { panel.GetComponent <UI_Recruit>().OpenRelicBtn(); } break; case 19: case 20: //极限试炼 UI_HomeControler.Inst.AddUI(UI_LimitTest.UI_ResPath); // 极限试炼 //UI_HomeControler.Inst.AddUI(UI_TestPanel.GetPath()); break; case 24: //世界boss界面 WorldBossPanelController temp = new WorldBossPanelController(); temp.OpenWorldPanel(false, false); break; case 8: case 9: //背包界面 UI_HomeControler.Inst.AddUI(UI_Bag.UI_ResPath); break; case 11: case 12: //探险界面 UI_ExploreModule.CheckAndOpenExploreUI(); break; case 21: //缪斯奏曲界面 UI_HomeControler.Inst.AddUI(UI_GetPower.UI_ResPath); break; case 23: //许愿台界面 UI_HomeControler.Inst.AddUI(UI_SacredAltar.UI_ResPath); break; case 17: case 25: //商店道具页 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); break; case 15: //招募界面 UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); break; case 10: //神器界面 UI_HomeControler.Inst.AddUI(UI_Artifact.UI_ResPath); break; case 22: //无需跳转 break; case 18: //商店金币页 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.GOLD); break; case 4: //英雄信息界面 FailButtonClick(0); break; case 5: //技能提升界面 FailButtonClick(3); break; case 6: //英雄熔灵界面 UI_HomeControler.Inst.AddUI(UI_HeroLitholysin.UI_ResPath); break; case 26: //符文熔炼界面 UI_HomeControler.Inst.AddUI(UI_RuneExp.UI_ResPath); break; case 7: //英雄培养界面 FailButtonClick(2); break; default: break; } UI_HomeControler.Inst.ReMoveUI(UI_Liveness.UI_ResPath); }
private void OnClickRightBtn() { List <int> _tempList = m_MergeData[m_TeamId]; GameactivityTemplate _Data = (GameactivityTemplate)DataTemplate.GetInstance().m_GameactivityTable.getTableData(_tempList[0]); string[] jumpTypeArray = _Data.getJumpstype().Split('#'); if (int.Parse(jumpTypeArray[0]) == 1) { //弹出充值窗口 UI_HomeControler.Inst.AddUI(UI_QuikChargeMgr.UI_ResPath); } if (int.Parse(jumpTypeArray[0]) == 3) { //跳转到世界Boss GameObject go = UI_HomeControler.Inst.AddUI(UI_TestPanel.GetPath()); if (go) { go.GetComponent <UI_TestPanel>().GotoWorldBoss(); } OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 4) { //跳转到英雄招募 UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 5) { //跳转到遗迹宝藏 UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); if (UI_Recruit.inst != null) { UI_Recruit.inst.OpenRelicBtn(); } OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 6) { UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.SKIN); //跳转到商城时装 //UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); //if (UI_ShopMgr.inst != null) //{ // UI_ShopMgr.inst.OnSkinToggleValueChanged(true); //} OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 7) { //跳转到商城礼包 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.GIFT); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 8) { //跳转到商城道具 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); } if (int.Parse(jumpTypeArray[0]) == 9) { //跳转到神器 UI_HomeControler.Inst.AddUI(UI_Artifact.UI_ResPath); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 10) { //跳转到符文熔炼 UI_HomeControler.Inst.AddUI(UI_RuneExp.UI_ResPath); OnClickReturnBtn(); } if (int.Parse(jumpTypeArray[0]) == 11) { //跳转到熔灵 UI_HomeControler.Inst.AddUI(UI_HeroLitholysin.UI_ResPath); OnClickReturnBtn(); } // 2 跳转到关卡章节 if (int.Parse(jumpTypeArray[0]) == 2) { //当前章节Id int _CurChapterId = StageModule.GetPlayerLastChapterID(); if (_CurChapterId < int.Parse(jumpTypeArray[1])) { InterfaceControler.GetInst().AddMsgBox("指定章节未开放", this.transform); return; } if (jumpTypeArray.Length >= 2) { if (int.Parse(jumpTypeArray[1]) == 1001) { ObjectSelf.GetInstance().SetIsPrompt(true); ObjectSelf.GetInstance().Week = ObjectSelf.GetInstance().GetWeek(); UI_HomeControler.Inst.AddUI(UI_PromptFightArea.UI_ResPath); OnClickReturnBtn(); } else { UI_SelectLevelMgrNew.InitChapterId = int.Parse(jumpTypeArray[1]); UI_HomeControler.Inst.AddUI(UI_SelectLevelMgrNew.UI_ResPath); OnClickReturnBtn(); } } } }
//根据任务类型来判断前往不懂的界面 protected override void OnClickGOBtn() { base.OnClickGOBtn(); switch (_GotoType) { case 1: case 2: case 3: case 13: case 14: //关卡选择界面 //UI_HomeControler.Inst.AddUI(UI_SelectFightArea.UI_ResPath); break; case 16: //宝藏遗迹 break; case 19: case 20: case 24: //历练界面 UI_HomeControler.Inst.AddUI(UI_LimitTest.UI_ResPath); break; case 8: case 9: //符文界面 UI_HomeControler.Inst.AddUI(UI_Bag.UI_ResPath); break; case 11: case 12: case 21: case 23: //玩法界面 UI_HomeControler.Inst.AddUI(UI_PlayingMethod.UI_ResPath); break; case 17: case 25: //商店道具页 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); break; case 15: //招募界面 UI_HomeControler.Inst.AddUI(UI_Recruit.UI_ResPath); break; case 10: //神器界面 UI_HomeControler.Inst.AddUI(UI_Artifact.UI_ResPath); break; case 22: //无需跳转 break; case 18: //商店金币页 UI_HomeControler.Inst.AddUI(UI_ShopMgr.UI_ResPath); UI_ShopMgr.SetCurShowTab(SHOP_TAB.GOLD); break; case 4: //英雄信息界面 FailButtonClick(0); break; case 5: //技能提升界面 FailButtonClick(3); break; case 6: //英雄熔灵界面 UI_HomeControler.Inst.AddUI(UI_HeroLitholysin.UI_ResPath); break; case 26: //符文熔炼界面 UI_HomeControler.Inst.AddUI(UI_RuneExp.UI_ResPath); break; case 7: //英雄培养界面 FailButtonClick(2); break; default: break; } UI_HomeControler.Inst.ReMoveUI(UI_Liveness.UI_ResPath); }