Esempio n. 1
0
        public const string STARTUP = "StartupCommand_STARTUP";//启动事件
        public override void Execute(INotification notification)
        {
            //----------------- 注册相关信息 -----------------------
            AppFacadeManager.OnRegister();
            //----------------- 注册UI -----------------------
            ResManager.instance.LoadPrefab(ResPath.Get(PathType.PANEL_PFB, PfbPath.Instance.RootPanel));
            //----------------- 初始化管理器 -----------------------
            // 本地化文本
            LangLocSet.Instance.Init();


            /*// 注册UI
             * GameObject rp = (ResManager.instance.LoadAsset<GameObject>("RootPanel", E_GameResType.ui_prefab));
             * GameObject go = Object.Instantiate(rp);
             * Object.DontDestroyOnLoad(go);*/

            // 打开Login界面
            PanelManagerCtrl.Open(E_ViewId.LOADING);
        }
Esempio n. 2
0
 protected void OpenView(E_ViewId id)
 {
     PanelManagerCtrl.Open(id);
 }
Esempio n. 3
0
 protected void CloseView()
 {
     PanelManagerCtrl.Close(_viewId);
 }