public void Dispose() { // Debug.Log("BundleRequest release"); // assetBase = null; requesetCallBack = null; requesetInfo.Dispose(); for (int i = 0; i < bundleNode.Length; i++) { bundleNode[i].Dispose(); bundleNode[i] = null; } bundleNode = null; }
public BundleRequest(AssetRequesetInfo info, AssetBase mono, BundleRequesetBack callBack) { requesetCallBack = new BundleRequesetBack(callBack); this.requesetInfo = info; bundleCount = 0; this.assetBase = mono; //info.Debug(); bundleNode = new BundleBackNode[info.bundles.Length]; for (int i = 0; i < info.bundles.Length; i++) { BundleBackNode tmpBundle = new BundleBackNode(info.resSingle[i], info.scenceName, info.bundles[i], null, info.resNames[i]); tmpBundle.AddCallBack(ResLoadFinish); bundleNode[i] = tmpBundle; } }