Exemple #1
0
 /// <summary>
 /// 注册UI面板
 /// </summary>
 void RegisterUiPanels()
 {
     AbstractPanel.RegisterPanel <BattlePanel>(PanelName.battlePanel);
     AbstractPanel.RegisterPanel <PackagePanel>(PanelName.packagePanel);
     AbstractPanel.RegisterPanel <ShopPanel>(PanelName.shopPanel);
     AbstractPanel.RegisterPanel <LoadingPanel>(PanelName.loadingPanel);
 }
Exemple #2
0
 void RegisterUI()
 {
     AbstractPanel.RegisterPanel <StartPanel>(UIName.start);
     AbstractPanel.RegisterPanel <AfterP1Panel>(UIName.afterP1);
     AbstractPanel.RegisterPanel <AfterP2Pane2>(UIName.afterP2);
     AbstractPanel.RegisterPanel <Player1Panel>(UIName.Player1Win);
     AbstractPanel.RegisterPanel <Player2Panel>(UIName.Player2Win);
     AbstractPanel.RegisterPanel <Pause1Panel>(UIName.Player1pause);
     AbstractPanel.RegisterPanel <Pause2Panel>(UIName.Player2pause);
 }
Exemple #3
0
    private void Awake()
    {
        Game.Global.GlobalVar.InitGlovalVar();
        this.gameObject.AddComponent <MainLoop>();


        AbstractPanel.RegisterPanel <WelcomePanel>(UIName.WelComePanel);
        AbstractPanel.RegisterPanel <WordPanel>(UIName.WordPanel);
        AbstractPanel.RegisterPanel <AlarmClockPanel>(UIName.AlarmClock);
        AbstractPanel.RegisterPanel <BreakfastPanel>(UIName.BreakfastPanel);
    }