yanghuan/CSharpLuaForUnity

包含析构函数的类在Compile之后,判断是否是CSharp类时出错

Closed this issue · 0 comments

local function isUserdataType(obj, cls)
if cls.__gc ~= nil then
return isInstanceOfType(typeof(cls), obj)
end
return true
end