Skip to content

Commit

Permalink
Windowsの自動更新対応2
Browse files Browse the repository at this point in the history
  • Loading branch information
kankikuchi committed Dec 12, 2019
1 parent ef13a5b commit bd03c1e
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/AudioManager_KanKikuchi/Editor/AudioPathCreator.cs
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
public class AudioPathCreator : AssetPostprocessor {

//オーディオファイルが入ってるディレクトリへのパス
public static readonly string BGM_DIRECTORY_PATH = Path.Combine("Resources", BGMManager.AUDIO_DIRECTORY_PATH), SE_DIRECTORY_PATH = Path.Combine("Resources", SEManager.AUDIO_DIRECTORY_PATH);
public static readonly string BGM_DIRECTORY_PATH = "Resources/" + BGMManager.AUDIO_DIRECTORY_PATH, SE_DIRECTORY_PATH = "Resources/" + SEManager.AUDIO_DIRECTORY_PATH;

//=================================================================================
//変更の監視
6 changes: 3 additions & 3 deletions Assets/AudioManager_KanKikuchi/Editor/AudioPostProcessor.cs
Original file line number Diff line number Diff line change
@@ -56,14 +56,14 @@ private static void OnPostprocessAllAssets(string[] importedAssets, string[] del

//対象のBGMが入ってるディレクトリへのパスを取得
private static string GetBGMDirectoryPath() {
return Path.Combine(GetTopDirectoryPath(), AudioPathCreator.BGM_DIRECTORY_PATH);
return GetTopDirectoryPath() + "/" + AudioPathCreator.BGM_DIRECTORY_PATH;
}

//対象のSEが入ってるディレクトリへのパスを取得
private static string GetSEDirectoryPath() {
return Path.Combine(GetTopDirectoryPath(), AudioPathCreator.SE_DIRECTORY_PATH);
return GetTopDirectoryPath() + "/" + AudioPathCreator.SE_DIRECTORY_PATH;
}

//対象のが入ってるディレクトリへのパスを取得
private static string GetTopDirectoryPath() {
//このスクリプトがある所へのパス取得し、そこからパスを計算

0 comments on commit bd03c1e

Please sign in to comment.