In lua, we generally interpret whether a C# object is Null by interpreting whether userdata is equal to nil, but sometimes it is clear that the object has been deleted, but the judgment result is still not deleted. We can also judge by the following method
function IsNil(uobj)
return uobj == nil or uobj:Equals(nil)
end