Ejemplo n.º 1
0
    private IEnumerable AssetBundlesPreprocess()
    {
        // Set DoNotReleaseBundle Info

        /*
         * var bundleNames = new []
         * {
         *  "animations", "commonatlas", "cganimator", "cg",
         *   "outward", "monsters", "characters",
         *  "interfaces_kr", "interfaces_tw", "interfaces",
         *   "sfx", "others",
         * };
         * */

        // AssetBundlesPreprocess: AnimationClip & Icon
        // 采用的是同步加载实现,需要预先加载
        foreach (var v in GameCustomConfigParams.PreloadBundles)
        {
            CAssetBundleManager.SyncLoadAssetBundle(v);
            yield return(null);
        }
    }