public void ReleseBundle(string bundleKey, bool isReleseAsset) { if (allBundleDir.ContainsKey(bundleKey)) { // Debug 当前场景所有Bundle的 依赖 和 被依赖关系 //List<string> keys = new List<string>(); //keys.AddRange(abManager.loadHelperDic.Keys); //for (int i = 0; i < keys.Count; i++) //{ // Debug.Log("bundleName = " + keys[i] + " Depends = " + abManager.loadHelperDic[keys[i]].dependList.Count + " Ref =" + abManager.loadHelperDic[keys[i]].referList.Count); //} abManager.ReleseBundle(allBundleDir[bundleKey], isReleseAsset); } else { Debug.Log("Dont have Bundle bundleKey = " + bundleKey); } }