示例#1
0
        private void InitAppModules()
        {
            UI = Framework.env1.modules.CreateModule <UIModule>();
            UI.AddLoader(this);


            UI.SetGroups(new Groups(UIMap_MVVM.map));

            UI.Get <TipPanel>(UIConfig.Name <TipPanel>(), UIConfig.Path <TipPanel>(), UIConfig.Layer <TipPanel>());

            UI.Get <StatusPanel>(UIConfig.Name <StatusPanel>(), UIConfig.Path <StatusPanel>(), UIConfig.Layer <StatusPanel>());
            UI.Get <UpdatePanel>(UIConfig.Name <UpdatePanel>(), UIConfig.Path <UpdatePanel>(), UIConfig.Layer <UpdatePanel>());
        }
示例#2
0
        private void InitAppModules()
        {
            UI = Framework.env1.modules.CreateModule <UIModule>();
            UI.AddLoader(UILoader);
            UIPanel UILoader(Type type, string path, string name, UIPanelLayer layer)
            {
                GameObject go = Resources.Load <GameObject>(path);
                UIPanel    p  = go.GetComponent <UIPanel>();

                return(p);
            }

            UI.SetMap(UIMap_MVVM.map);

            UI.Get <TipPanel>(UIConfig.Name <TipPanel>(), UIConfig.Path <TipPanel>(), UIConfig.Layer <TipPanel>());

            UI.Get <StatusPanel>(UIConfig.Name <StatusPanel>(), UIConfig.Path <StatusPanel>(), UIConfig.Layer <StatusPanel>());
            UI.Get <UpdatePanel>(UIConfig.Name <UpdatePanel>(), UIConfig.Path <UpdatePanel>(), UIConfig.Layer <UpdatePanel>());
        }