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