static int Close(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, typeof(Logic.UI.UIMgr), typeof(Logic.UI.EUISortingLayer)))
            {
                Logic.UI.UIMgr           obj  = (Logic.UI.UIMgr)ToLua.ToObject(L, 1);
                Logic.UI.EUISortingLayer arg0 = (Logic.UI.EUISortingLayer)ToLua.ToObject(L, 2);
                obj.Close(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, typeof(Logic.UI.UIMgr), typeof(string)))
            {
                Logic.UI.UIMgr obj  = (Logic.UI.UIMgr)ToLua.ToObject(L, 1);
                string         arg0 = ToLua.ToString(L, 2);
                obj.Close(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Logic.UI.UIMgr.Close"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int CloseLayerBelow(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr           obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         Logic.UI.EUISortingLayer arg0 = (Logic.UI.EUISortingLayer)ToLua.CheckObject(L, 2, typeof(Logic.UI.EUISortingLayer));
         obj.CloseLayerBelow(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetOpenUICount(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.UI.UIMgr           obj  = (Logic.UI.UIMgr)ToLua.CheckObject(L, 1, typeof(Logic.UI.UIMgr));
         Logic.UI.EUISortingLayer arg0 = (Logic.UI.EUISortingLayer)ToLua.CheckObject(L, 2, typeof(Logic.UI.EUISortingLayer));
         int o = obj.GetOpenUICount(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }