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

            if (count == 2)
            {
                Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.UnloadAssetBundle(arg0);
                return(0);
            }
            else if (count == 3)
            {
                Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                bool   arg1 = LuaDLL.luaL_checkboolean(L, 3);
                obj.UnloadAssetBundle(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Framework.ResourceManager.UnloadAssetBundle"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int LoadPrefab(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4 && TypeChecker.CheckTypes <string, System.Action <UnityEngine.Object[]> >(L, 3))
            {
                Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                System.Action <UnityEngine.Object[]> arg2 = (System.Action <UnityEngine.Object[]>)ToLua.ToObject(L, 4);
                obj.LoadPrefab(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes <string[], System.Action <UnityEngine.Object[]> >(L, 3))
            {
                Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
                string   arg0 = ToLua.CheckString(L, 2);
                string[] arg1 = ToLua.ToStringArray(L, 3);
                System.Action <UnityEngine.Object[]> arg2 = (System.Action <UnityEngine.Object[]>)ToLua.ToObject(L, 4);
                obj.LoadPrefab(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes <string, LuaInterface.LuaFunction>(L, 3))
            {
                Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                string      arg1 = ToLua.ToString(L, 3);
                LuaFunction arg2 = ToLua.ToLuaFunction(L, 4);
                obj.LoadPrefab(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes <string[], LuaInterface.LuaFunction>(L, 3))
            {
                Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                string[]    arg1 = ToLua.ToStringArray(L, 3);
                LuaFunction arg2 = ToLua.ToLuaFunction(L, 4);
                obj.LoadPrefab(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Framework.ResourceManager.LoadPrefab"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int GetResManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         Framework.ResourceManager o = Framework.Utility.LuaHelper.GetResManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Initialize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Framework.ResourceManager obj = (Framework.ResourceManager)ToLua.CheckObject <Framework.ResourceManager>(L, 1);
         string        arg0            = ToLua.CheckString(L, 2);
         System.Action arg1            = (System.Action)ToLua.CheckDelegate <System.Action>(L, 3);
         obj.Initialize(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_BaseDownloadingURL(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.ResourceManager obj = (Framework.ResourceManager)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.BaseDownloadingURL = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseDownloadingURL on a nil value"));
        }
    }
    static int get_BaseDownloadingURL(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.ResourceManager obj = (Framework.ResourceManager)o;
            string ret = obj.BaseDownloadingURL;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseDownloadingURL on a nil value"));
        }
    }