Exemple #1
0
        private void LoadDependencies(LoadItem load_item)
        {
            string[] dependence = manifest.GetAllDependencies(load_item.asset_id.bundleName);
            for (int i = 0; i < dependence.Length; ++i)
            {
                AssetId asset_id = new AssetId(dependence[i], "");
                if (loadDic.ContainsKey(asset_id))
                {
                    continue;
                }

                LoadItem dep_load_item = new LoadItem();
                dep_load_item.asset_id = asset_id;
                dep_load_item.type     = AssetType.BUNDLE;
                this.loadQueue.Enqueue(dep_load_item);
            }
        }
Exemple #2
0
 public bool IsExistAsset(AssetId asset_id)
 {
     return(cache.ContainsKey(asset_id.bundleName));
 }