Beispiel #1
0
        protected override void InitView()
        {
            base.InitView();
            if (NeedShowMysteriousShop)
            {
                AddUI(UI_MysteriousShop.Path);
                NeedShowMysteriousShop = false;
            }

            if (NeedShowWorldBossPanel)
            {
//                var _go = AddUI(UI_TestPanel.GetPath());
//                _go.GetComponent<UI_TestPanel>().GotoWorldBoss();
//                _go = AddUI(UI_WorldBoss.GetPath());
                var ctrl = new WorldBossPanelController();
                ctrl.OpenWorldPanel(true);
                NeedShowWorldBossPanel = false;
            }
            //           AddUI(UI_SignInManager.Path);
        }
Beispiel #2
0
    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);
    }