public static void Start() { #if ILRuntime if (!Define.IsILRuntime) { Debug.LogError("冷更层是mono模式, 但是Hotfix层是ILRuntime模式"); } #else if (Define.IsILRuntime) { Debug.LogError("冷更层是ILRuntime模式, Hotfix层是mono模式"); } #endif Debug.Log("初始化热更层..."); try { //切换场景 ResMgr.LoadScene(@"Assets/Res/Scenes/FirstScene.unity", delegate(AssetRequest a) { }); } catch (Exception e) { Debug.LogError(e); } }
static public int LoadScene(IntPtr l) { try { ResMgr self = (ResMgr)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); SceneLoader.LoadSceneDoneCallback a3; LuaDelegation.checkDelegate(l, 4, out a3); SceneLoader.LoadSceneUpdateCallback a4; LuaDelegation.checkDelegate(l, 5, out a4); self.LoadScene(a1, a2, a3, a4); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }