public static int IsDestroyed(IntPtr l) { int result; try { LayoutRebuilder layoutRebuilder = (LayoutRebuilder)LuaObject.checkSelf(l); bool b = layoutRebuilder.IsDestroyed(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }