コード例 #1
0
        protected override void Initialize()
        {
            //清空所有未注销bundle
            AssetBundle.UnloadAllAssetBundles(true);

            //实例map
            map = new Dictionary <string, string>();
            //读取配置文件
            ConfigurationManager.LoadConfig(BundleKey.ConfigName, BuildMap);
            //实例资源字典
            assetDic = new Dictionary <string, Dictionary <string, Object> >();

            //获取manifest
            manifest = ReturnBundle(BundleKey.FileName).LoadAsset <AssetBundleManifest>("AssetBundleManifest");
            //实例依赖bundle字典
            dependBundleDic = new Dictionary <string, AssetBundle>();
        }