static int _m_DownloadAssetFileAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); AssetBundles.AssetBundleManager gen_to_be_invoked = (AssetBundles.AssetBundleManager)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { string _filePath = LuaAPI.lua_tostring(L, 2); bool _isLoadBundle = LuaAPI.lua_toboolean(L, 3); AssetBundles.ResourceWebRequester gen_ret = gen_to_be_invoked.DownloadAssetFileAsync(_filePath, _isLoadBundle); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _filePath = LuaAPI.lua_tostring(L, 2); AssetBundles.ResourceWebRequester gen_ret = gen_to_be_invoked.DownloadAssetFileAsync(_filePath); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to AssetBundles.AssetBundleManager.DownloadAssetFileAsync!")); }
static int _m_DownloadAssetFileAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); AssetBundles.AssetBundleManager gen_to_be_invoked = (AssetBundles.AssetBundleManager)translator.FastGetCSObj(L, 1); { string _filePath = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.DownloadAssetFileAsync(_filePath); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }