private static void _init_view_data(E_ViewId id, E_PanelType type, string pfbName, E_PanelBgType showMode = E_PanelBgType.NOTHING, bool hasBgClickClose = true) { PanelInfo view = new PanelInfo(id, type, ResPath.Get(PathType.PANEL_PFB, pfbName)); view._showMode = showMode; view._hasBgClickClose = hasBgClickClose; ViewPrefabMap.Add(id, view); _viewCount++; }
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); }