Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="asset"></param>
 internal void CompleteLoad(IAssetBundle asset)
 {
     if (!beginLoad)
     {
         throw new ArgumentException("Not loading entity, can't complete be load!");
     }
     if (asset != null && asset.Parameter != null && !assets.ContainsKey(asset.Parameter.Path))
     {
         IAssetLoader assetLoader = GetAssetLoader(asset.Parameter.LoadType);
         if (assetLoader != null)
         {
             assetLoader.AddAsset(asset);
         }
         assets.Add(asset.Parameter.Path, asset);
         needs.Remove(asset.Parameter.Path);
         loaded++;
     }
 }