Exemplo n.º 1
0
        private void DownLoadBundles()
        {
            var targetPath = Application.streamingAssetsPath;
            var map        = FindAllBundleNames();

            AssetBundleConfig.map = map;
            foreach (var name in map.Keys)
            {
                var bundleName = BundleTool.GetBundleFileName(name);
                File.Copy(BundleConfig.BUNDLE_REMOTE_PATH + "/" + bundleName, targetPath + "/" + bundleName, true);
            }
        }