Пример #1
0
 public void Tick(int uDeltaTimeMS)
 {
     for (int i = 0; i < _LoadingResList.Count; i++)
     {
         AbstractLoaderInfo info = _LoadingResList[i];
         if (info.isValid)
         {
             if (info.IsComplete())
             {
                 if (info.callback != null)
                 {
                     info.isValid = false;
                     info.callback(info.LoadIndex, info.GetRes());
                 }
                 _LoadingResList.RemoveAt(i);
                 i--;
             }
         }
     }
 }
Пример #2
0
 private void AddLoader(AbstractLoaderInfo info)
 {
     info.isValid = true;
     _LoadingResList.Add(info);
 }