private void LoadNext()
 {
     while (_loadingList.Count < MaxLoaderCount && _waitingList.Count > 0)
     {
         Resource loadingRes = _waitingList.First.Value;
         _waitingList.RemoveFirst();
         _loadingList.AddLast(loadingRes);
         if (!_resContainer.DirectLoadMode)
         {
             if (loadingRes.resType == ResourceType.AssetBundle)
             {
                 _assetBundleResourcesLoader.Load(loadingRes);
             }
             else
             {
                 _wwwLoader.Load(loadingRes);
             }
         }
         else
         {
             if (_resContainer.DirInResources)
             {
                 _inResourcesLoader.Load(loadingRes);
             }
             else
             {
                 _outResourcesLoader.Load(loadingRes);
             }
         }
     }
 }
Example #2
0
 private void LoadNext()
 {
     while (_loadingList.Count < MaxLoaderCount && _waitingList.Count > 0)
     {
         Resource loadingRes = _waitingList.First.Value;
         _waitingList.RemoveFirst();
         _loadingList.AddLast(loadingRes);
         if (!_resContainer.ResourcesLoadMode)
         {
             _wwwLoader.Load(loadingRes);
         }
         else
         {
             _outResourcesLoader.Load(loadingRes);
             //这里不用res目录
             //_inResourcesLoader.Load(loadingRes);
         }
     }
 }