/// <summary> /// 释放AB包 /// </summary> public void Dispose() { if (assetLoader == null) { Debug.LogError("assetLoader is Null"); return; } assetLoader.Dispose(); }
private void RemoveExpiredLoaders() { for (int i = 0; i < this.wwwLoaders.Count; i++) { WWWLoader loader = this.wwwLoaders[i]; if (loader.IsDone) { if (!string.IsNullOrEmpty(loader.Error)) { object[] args = new object[] { loader.Error }; Debug.LogWarningFormat("UnityHTTPAppender: {0}", args); } loader.Dispose(); this.wwwLoaders.RemoveAt(i); i--; } } }