예제 #1
0
    private void AddBundlesToStreamingAssets()
    {
        FileUtil.DeleteFileOrDirectory(StreamingBundlesDirectory);
        FileUtil.DeleteFileOrDirectory(StreamingBundlesCacheDirectory);

        if ((_params.ExtraOptions & Params.ExtraBuildOptions.IncludeBundles) != 0)
        {
            BuildUtils.CreateSymlink(_bundlesPath, StreamingBundlesDirectory);
        }

        if ((_params.ExtraOptions & Params.ExtraBuildOptions.IncludeBundlesCache) != 0)
        {
            BuildUtils.CreateSymlink(_bundlesCachePath, StreamingBundlesCacheDirectory);
        }
    }