/// <summary> /// 注册模块并且 /// 启动模块 /// </summary> private void RegModuleAndStart() { //测试 appdomain.DelegateManager.RegisterMethodDelegate <System.Exception>(); appdomain.DelegateManager.RegisterDelegateConvertor <TestDelegateMethod>((action) => { return(new TestDelegateMethod((a) => { ((System.Action <Exception>)action)(a); })); }); //TODO:要修改成通过配置加载 List <string> list = new List <string>() { "BDFramework.ScreenView_Test1", "BDFramework.ScreenView_Test2" }; //注册各个模块 m_layerCenter = new ScreenViewCenter(); m_layerCenter.AddLayer(); g_mainLayer = m_layerCenter.GetLayer(0); for (int i = 0; i < list.Count; i++) { g_mainLayer.RegScreen(new ScreenView_HotFix_Wrapper(appdomain, list[i])); } // g_mainLayer.BeginNavTo("test_1"); }
public void BeginInit(Action <Exception> onInit, ScreenViewLayer layer) { //一定要设置为true,否则当前是未加载状态 this.IsLoad = true; //打开 window 2 UIMgr.Inst.ShowWindow((int)WinEnum.Win_Test2); // Debug.Log("进入 Test Screen 2"); }
public void BeginInit(Action <Exception> onInit, ScreenViewLayer layer) { //一定要设置为true,否则当前是未加载状态 this.IsLoad = true; //打开 window 3 UIMgr.Inst.LoadWindows(WinEnum.Win_XVC); UIMgr.Inst.ShowWindow(WinEnum.Win_XVC); // Debug.Log("进入demo3"); }
public void BeginInit(Action <Exception> onInit, ScreenViewLayer layer) { //一定要设置为true,否则当前是未加载状态 this.IsLoad = true; //加载窗口, 0是窗口id,建议自行换成枚举 UIMgr.Inst.LoadWindows((int)WinEnum.Win_Test1, (int)WinEnum.Win_Test2, (int)WinEnum.Win_XVC); UIMgr.Inst.ShowWindow((int)WinEnum.Win_Test1); Debug.Log("进入Test Screen 1"); }
public void BeginInit(Action <Exception> onInit, ScreenViewLayer layer) { this.IsLoad = true; //BDebug.Log("enter logo"); UIMgr.Inst.LoadWindows(0); UIMgr.Inst.ShowWindow(0); IEnumeratorTool.WaitingForExec(3, () => { ScreenViewMgr.Inst.BeginNav("Battle"); }); }
public void BeginInit(Action <Exception> onInit, ScreenViewLayer layer) { this.IsLoad = true; }