|
@@ -29,6 +29,10 @@ namespace GFGEditor
|
|
|
public static string MusicTargetPath = $"{ResPathUtil.MUSIC_DIR_PATH}/";
|
|
|
public static string MusicMd5FileSaveName = "MusicMd5";
|
|
|
|
|
|
+ private static string[] VoiceSrcPaths { get { return new string[] { ResRootPath + "voice/" }; } }
|
|
|
+ public static string VoiceTargetPath = $"{ResPathUtil.Voice_DIR_PATH}/";
|
|
|
+ public static string VoiceMd5FileSaveName = "VoiceMd5";
|
|
|
+
|
|
|
private static string[] CardMusicSrcPaths { get { return new string[] { ResRootPath + "cardMusic/Card/" }; } }
|
|
|
public static string CardMusicTargetPath = $"{ResPathUtil.SOUND_DIR_PATH}/Card/";
|
|
|
public static string CardMusicMd5FileSaveName = "CardMusicMd5";
|
|
@@ -150,6 +154,9 @@ namespace GFGEditor
|
|
|
//音乐
|
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入音乐", 1);
|
|
|
ImportRes(MusicSrcPaths, MusicTargetPath, MusicMd5FileSaveName);
|
|
|
+ //语音
|
|
|
+ EditorUtility.DisplayProgressBar("进度", "正在导入语音", 1);
|
|
|
+ ImportRes(VoiceSrcPaths, VoiceTargetPath, VoiceMd5FileSaveName);
|
|
|
//词牌音乐
|
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入词牌音乐", 1);
|
|
|
ImportRes(CardMusicSrcPaths, CardMusicTargetPath, CardMusicMd5FileSaveName);
|
|
@@ -263,7 +270,7 @@ namespace GFGEditor
|
|
|
}
|
|
|
foreach (string dir in sourceDirs)
|
|
|
{
|
|
|
- files = FileUtil.CopyFilesTo(dir, targetDir, saveName, new string[] { ".png", ".jpg", ".mp3", ".meta", ".mat", ".shader", ".tga", ".FBX"}, ragule);
|
|
|
+ files = FileUtil.CopyFilesTo(dir, targetDir, saveName, new string[] { ".png", ".jpg", ".mp3", ".wav", ".meta", ".mat", ".shader", ".tga", ".FBX"}, ragule);
|
|
|
foreach (var file in files)
|
|
|
{
|
|
|
Debug.LogFormat("更新{0}", file);
|