Ejemplo n.º 1
0
 public static void HookRef(IntPtr L, int reference)
 {
     if (isHook)
     {
         HookLuaSetup.RegisterAction(() =>
         {
             LuaLib.DoRefLuaFun(L, "lua_miku_add_ref_fun_info", reference);
         });
     }
 }
        public static void HookUnRef(IntPtr L, int reference)
        {
#if XLUA || TOLUA || SLUA
            if (isHook)
            {
                HookLuaSetup.RegisterAction(() =>
                {
                    LuaLib.DoRefLuaFun(L, "lua_miku_remove_ref_fun_info", reference);
                });
            }
#endif
        }