Ejemplo n.º 1
0
        public async ETTask DownloadAsync(string url)
        {
            this.tcs = ETTask.Create(true);

            url          = url.Replace(" ", "%20");
            this.Request = UnityWebRequest.Get(url);
            this.Request.certificateHandler = certificateHandler;
            this.Request.SendWebRequest();

            await this.tcs;
        }
Ejemplo n.º 2
0
        public ETTask DownloadAsync(string url)
        {
            this.tcs = new ETTaskCompletionSource();

            url          = url.Replace(" ", "%20");
            this.Request = UnityWebRequest.Get(url);
            this.Request.certificateHandler = certificateHandler;
            this.Request.SendWebRequest();

            return(this.tcs.Task);
        }