コード例 #1
0
 public void Update()
 {
     while (!refGCList.IsEmpty())
     {
         int reference = refGCList.Dequeue();
         LuaDLL.lua_unref(lua.L, reference);
     }
 }
コード例 #2
0
    void TickUnref()
    {
        if (Time.frameCount % 30 != 0)
        {
            return;
        }

        while (!_refGCList.IsEmpty())
        {
            LuaRef lf = _refGCList.Dequeue();
            LuaDLL.lua_unref(lf.L, lf.reference);
        }
    }