Beispiel #1
0
 public void UnLoadBundle(string assetBundleName)
 {
     assetBundleName = assetBundleName.BundleNameToLower();
     string[] dependencies = AssetBundleHelper.GetSortedDependencies(assetBundleName);
     foreach (string dependency in dependencies)
     {
         UnloadOneBundle(dependency);
     }
 }
Beispiel #2
0
 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);
     }
 }