static int UnloadUnusedAssets(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Framework.ResourceMgr obj = (Framework.ResourceMgr)ToLua.CheckObject <Framework.ResourceMgr>(L, 1); obj.UnloadUnusedAssets(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnloadUnusedAssets(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.ResourceMgr obj = (Framework.ResourceMgr)ToLua.CheckObject <Framework.ResourceMgr>(L, 1); System.Action <UnityEngine.AsyncOperation> arg0 = (System.Action <UnityEngine.AsyncOperation>)ToLua.CheckDelegate <System.Action <UnityEngine.AsyncOperation> >(L, 2); obj.UnloadUnusedAssets(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnloadUnusedAssets(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.ResourceMgr.UnloadUnusedAssets"); #endif try { ToLua.CheckArgsCount(L, 2); Framework.ResourceMgr obj = (Framework.ResourceMgr)ToLua.CheckObject <Framework.ResourceMgr>(L, 1); System.Action arg0 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 2); obj.UnloadUnusedAssets(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }