static int Close(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UISystem obj = (UISystem)ToLua.CheckObject(L, 1, typeof(UISystem)); obj.Close(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }