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