Beispiel #1
0
        IEnumerator LoadDependencies(string assetBundleName)
        {
            if (this.manifest == null)
            {
                yield break;
            }
            // 获取依赖包裹
            string[] dependencies = this.manifest.GetAllDependencies(assetBundleName);

            if (dependencies.Length == 0)
            {
                yield break;
            }

            // 记录并且加载所有的依赖包裹
            LOAssetCache.SetDependCache(assetBundleName, dependencies);

            for (int i = 0; i < dependencies.Length; i++)
            {
                yield return(IsLoadAssetBundleAtInternal(dependencies[i]));
            }
        }
Beispiel #2
0
        IEnumerator LoadDependencies(string assetBundleName)
        {
            if (this.manifest == null)
            {
                yield break;
            }

            // 获取依赖包裹
            string[] dependencies = this.manifest.GetAllDependencies(assetBundleName);
            if (dependencies.Length == 0)
            {
                yield break;
            }

            com.QH.QPGame.GameUtils.Logger.Res.Log("LoadDependencies:" + string.Join(";", dependencies));

            // 记录并且加载所有的依赖包裹
            cache.SetDependCache(assetBundleName, dependencies);

            for (int i = 0; i < dependencies.Length; i++)
            {
                yield return(IsLoadAssetBundleAtInternal(dependencies [i]));
            }
        }