/// <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); }
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); }
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); }