static internal void gc(IntPtr l, int p, UnityEngine.Object o) { // set ud's metatable is nil avoid gc again LuaDLL.pua_pushnil(l); LuaDLL.pua_setmetatable(l, p); ObjectCache t = ObjectCache.get(l); t.gc(o); }
static public int luaGC(IntPtr l) { int index = LuaDLL.puaS_rawnetobj(l, 1); if (index > 0) { ObjectCache t = ObjectCache.get(l); t.gc(index); } return(0); }
public void ClearObject(UnityEngine.Object obj) { ObjectCache oc = ObjectCache.get(L); oc.gc(obj); }