public void Update() { while (!refGCList.IsEmpty()) { int reference = refGCList.Dequeue(); LuaDLL.lua_unref(lua.L, reference); } }
void TickUnref() { if (Time.frameCount % 30 != 0) { return; } while (!_refGCList.IsEmpty()) { LuaRef lf = _refGCList.Dequeue(); LuaDLL.lua_unref(lf.L, lf.reference); } }