Esempio n. 1
0
 /// <summary>
 /// 调整资源优先级
 /// </summary>
 /// <param name="res"></param>
 private void AdjustProri(CSResource res)
 {
     if (waitingQueueDic.ContainsKey(res.Path))
     {
         waitingWWWQueue.Remove(res);
         int index = FindProriIndex(res);
         waitingWWWQueue.Insert(index, res);
     }
     else
     {
         int index = FindProriIndex(res);
         waitingWWWQueue.Insert(index, res);
     }
 }
 private void AddCallBack(OnLoaded onLoaded)
 {
     onLoadedList.Insert(0, onLoaded);//保证调用的先后性,插到最前面,调用是从最后一个往前调用的
 }