public void VersionUpdate() { #if DOWNLOAD HotUpdateManager.VersionUpdate(() => { DestroyImmediate(m_ManagerCollection); m_ManagerCollection = AddChild <ManagerCollection>(); m_LuaMain.Restart(); //VersionCompare(); CoroutineManager.EndOfFrame(VersionCompare); }); #endif }
void Awake() { #if UNITY_EDITOR || DEBUG_MACRO Debugger.EnableLog = true; Debugger.EnableDraw = true; #endif s_Instance = this; m_HotUpdateManager = gameObject.AddComponent <HotUpdateManager>(); m_ManagerCollection = AddChild <ManagerCollection>(); m_LuaMain = AddChild <LuaMain>(); m_LuaMain.StartLua(); //VersionCompare(); CoroutineManager.EndOfFrame(VersionCompare); //CoroutineManager.Delay(0, VersionCompare, this); }
public void Restart() { ResetLua(); CoroutineManager.EndOfFrame(StartLua); }