Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        public void ClearObject(UnityEngine.Object obj)
        {
            ObjectCache oc = ObjectCache.get(L);

            oc.gc(obj);
        }