static int _m_DownloadAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCETRuntime.UnityWebRequestAsync gen_to_be_invoked = (DCETRuntime.UnityWebRequestAsync)translator.FastGetCSObj(L, 1); { string _url = LuaAPI.lua_tostring(L, 2); System.Threading.Tasks.Task <string> gen_ret = gen_to_be_invoked.DownloadAsync( _url); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }