/// <summary> /// 注销 /// </summary> public void Dispose() { if (abResLoader != null) { abResLoader.Dispose(); } abResLoader = null; }
public IEnumerator CommonLoad() { Debug.Log(commonBundlePath); www = new WWW(commonBundlePath); while (!www.isDone) { progress = www.progress; if (loadProgress != null) { loadProgress(bundleName, progress); } yield return(www.progress); progress = www.progress; } if (progress >= 1.0f) { abResLoader = new IABResLoader(www.assetBundle); if (loadProgress != null) { loadProgress(bundleName, progress); } if (loadFinished != null) { loadFinished(bundleName); } // abResLoader = new IABResLoader(www.assetBundle); } else { Debug.LogError("load bundle error ==" + bundleName); } www = null; }