private void HandleError(Entity entity, AssetBundleDiskCacheRequest request, string errorMessage)
 {
     if ((request.Progress > 0f) && (request.Progress < 1f))
     {
         this.SheduleErrorEvent <ServerDisconnectedEvent>(entity, errorMessage);
     }
     else
     {
         this.SheduleErrorEvent <NoServerConnectionEvent>(entity, errorMessage);
     }
 }
 public void Update(UpdateEvent e, SingleNode <AssetBundleDiskCacheComponent> cacheNode, [JoinAll] ICollection <SingleNode <AssetBundleLoadingComponent> > loadingBundleNodes)
 {
     cacheNode.component.AssetBundleDiskCache.Update();
     foreach (SingleNode <AssetBundleLoadingComponent> node in loadingBundleNodes)
     {
         AssetBundleDiskCacheRequest assetBundleDiskCacheRequest = node.component.AssetBundleDiskCacheRequest;
         if (assetBundleDiskCacheRequest.IsDone)
         {
             base.Log.InfoFormat("LoadComplete {0}", assetBundleDiskCacheRequest.AssetBundleInfo.Filename);
             if (!string.IsNullOrEmpty(assetBundleDiskCacheRequest.Error))
             {
                 this.HandleError(node.Entity, assetBundleDiskCacheRequest, assetBundleDiskCacheRequest.Error);
                 break;
             }
             base.ScheduleEvent <LoadCompleteEvent>(node.Entity);
         }
     }
 }