/// <summary> /// 注销 /// </summary> public void Dispose() { if (assetLoader != null) { assetLoader.Dispose(); } assetLoader = null; }
public void Init(string bundleName, LoadProgrecess loadProgress) { IsLoadFinish = false; this.progrecess = loadProgress; this.bundleName = bundleName; assetLoader = new IABLoader(loadProgress, LoadBundleFinish); assetLoader.SetBundleName(bundleName); Debug.Log(bundleName); string bundlePath = IPathTools.GetWWWAssetBundlePath() + "/" + bundleName; // string bundlePath = "file:///E:/Windows" + "/" + bundleName; assetLoader.LoadResources(bundlePath); }