private LoadSequence GetSequence() { LoadSequence sequence = null; foreach (LoadSequence tempSequence in sequenceList) { if (sequence == null || tempSequence.LoadNum < sequence.LoadNum) { sequence = tempSequence; } } return(sequence); }
private void LoadNetFile(string url, Action <Texture2D, string> callback, bool isCacheDisk, float compressFactor) { if (loadMap.ContainsKey(url)) { loadMap[url] = callback; return; } //选择序列 LoadSequence sequence = GetSequence(); if (sequence != null) { // Debug.LogWarning("chose index:" + sequence.index); sequence.AddLoad(url, isCacheDisk, compressFactor); loadMap.Add(url, callback); } else { Debug.LogWarning("下载序列获取失败。"); } }