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