public static void LateUpdate() { try { HotfixSystem.LateUpdate(); } catch (Exception e) { Log.Error(e); } }
public static void Start() { #if USE_HOT Log.Info("mono层是mono模式, 但是Hotfix层是ILRuntime模式", LogCategory.Start); #else RProxy.Log.Info("mono层是ILRuntime模式, Hotfix层是mono模式", LogCategory.Start); #endif try { // 注册热更层回调 //HotfixStart.ActionUpdate = () => { Update(); }; //HotfixStart.ActionLateUpdate = () => { LateUpdate(); }; //HotfixStart.ActionOnApplicationQuit = () => { OnApplicationQuit(); }; HotfixCore.Start(); HotfixSystem.Start(); } catch (Exception e) { Log.Error(e); } }