Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public void ClearObject(UnityEngine.Object obj)
        {
            ObjectCache oc = ObjectCache.get(L);

            oc.gc(obj);
        }