internal void OpenLoadingUI(string name) { if (FrameConstr.ILState == ILRuntimeState.Open) { Debug.Log("启动热更DLL的Loading界面"); m_AppDomain.Invoke("HotFixProject.HotFixMain", "OpenLoadingUI", null, name); } else { Debug.Log("启动本地模拟的Loading界面"); HotFixMain.OpenLoadingUI(name); } }
void OnHotFixLoaded(GameObject obj, Transform transform) { if (FrameConstr.ILState == ILRuntimeState.Open) { //启动热更DLL的Main方法 Debug.Log("启动热更DLL的Main方法"); m_AppDomain.Invoke("HotFixProject.HotFixMain", "Main", null, obj, transform); } else { Debug.Log("启动本地模拟的Main方法"); HotFixMain.Main(obj, transform); } }