示例#1
0
 //探险
 protected override void OnClickExplorationBtn()
 {
     base.OnClickExplorationBtn();
     //UI_HomeControler.Inst.AddUI(UI_ExploreMgr.UI_ResPath);
     if (UI_ExploreModule.CheckAndOpenExploreUI())
     {
         //UI_HomeControler.Inst.ReMoveUI(UI_ResPath);
     }
 }
示例#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);
    }