Esempio n. 1
0
 IEnumerator Download(Request request, DiskCacheOperation handle)
 {
     request.Send ();
     while (!request.isDone)
         yield return new WaitForEndOfFrame ();
     handle.isDone = true;
 }
Esempio n. 2
0
 public DiskCacheOperation Fetch (Request request)
 {
     var handle = new DiskCacheOperation ();
     handle.request = request;
     StartCoroutine (Download (request, handle));
     return handle;
 }