static int DestroyLuaPanel(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UISys obj = (UISys)ToLua.CheckObject(L, 1, typeof(UISys)); string arg0 = ToLua.CheckString(L, 2); obj.DestroyLuaPanel(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }