Beispiel #1
0
 public override void Reset()
 {
     AssetBundleName = String.Empty;
     LastUsedTime    = 0.0f;
     IsReady         = false;
     ReferenceCount  = 0;
     ReferenceList.Clear();
     LoadedAssetMap.Clear();
     AssetsPath = null;
 }
 public override void Reset()
 {
     Bundle          = null;
     AssetBundleName = String.Empty;
     LastUsedTime    = 0.0f;
     IsReady         = false;
     DepAssetBundleInfos.Clear();
     ReferenceCount = 0;
     ReferenceList.Clear();
     LoadedAssetMap.Clear();
     OnBundleUnloadAction = null;
 }
Beispiel #3
0
 public void UnloadResource()
 {
     foreach (KeyValuePair <string, Object> loadAsset in LoadedAssetMap)
     {
         var asset = loadAsset.Value;
         if (asset is GameObject || asset is Component)
         {
         }
         else
         {
             Resources.UnloadAsset(asset);
         }
     }
     LoadedAssetMap.Clear();
     IsReady = false;
 }