public void UnLoadBundle(string assetBundleName) { assetBundleName = assetBundleName.BundleNameToLower(); string[] dependencies = AssetBundleHelper.GetSortedDependencies(assetBundleName); foreach (string dependency in dependencies) { UnloadOneBundle(dependency); } }
public void LoadBundle(string assetBundleName) { assetBundleName = assetBundleName.BundleNameToLower(); string[] dependencies = AssetBundleHelper.GetSortedDependencies(assetBundleName); foreach (string dependency in dependencies) { if (string.IsNullOrEmpty(dependency)) { continue; } LoadOneBundle(dependency); } }