Exemplo n.º 1
0
        public static void restoreResources()
        {
            string restorePath = ExportUtil.getDataPath("");
            string bakPath     = ExportUtil.getPkgWorkPath("");

            UtilPath.createDirectory(restorePath);
            UtilPath.recurseCopyDirectory(bakPath, restorePath);
            UtilPath.deleteDirectory(bakPath);
        }
Exemplo n.º 2
0
        // 拷贝文件到 StreamingAssets 目录下
        public static void CopyAssetBundlesTo(string srcPath, BuildTarget target)
        {
            string platForm = GetPlatformFolderForAssetBundles(target);

            UtilPath.deleteDirectory(Application.streamingAssetsPath);
            UtilPath.createDirectory(Application.streamingAssetsPath);
            // 放入平台单独的目录下
            //CreateDirectory(Path.Combine(Application.streamingAssetsPath, platForm));
            //copyDirectory(srcPath, Path.Combine(Application.streamingAssetsPath, platForm));
            UtilPath.recurseCopyDirectory(srcPath, Application.streamingAssetsPath);
        }