Exemple #1
0
        public DiskCacheOperation Fetch(Request request)
        {
            var handle = new DiskCacheOperation();

            handle.request = request;
            StartCoroutine(Download(request, handle));
            return(handle);
        }
Exemple #2
0
 IEnumerator Download(Request request, DiskCacheOperation handle)
 {
     request.Send();
     while (!request.isDone)
     {
         yield return(new WaitForEndOfFrame());
     }
     handle.isDone = true;
 }