Example #1
0
 /// <summary>
 /// Unloads bundle if it is loaded.
 /// </summary>
 public static void UnloadBundle(ResourceBundle bundle)
 {
     if (bundle.isLoaded)
     {
         InternalUnload(bundle);
     }
 }
Example #2
0
        private static void InternalUnload(ResourceBundle bundle)
        {
            if (FlashResources.logLevel <= LogLevel.INFO)
            {
                Debug.Log("Unloading: " + bundle.name);
            }

            _currentBundles.Remove(bundle);

            bundle.InternalUnload();
        }