diff --git a/Sinmai-Internal-Damage/Functions/Sounds.cs b/Sinmai-Internal-Damage/Functions/Sounds.cs new file mode 100644 index 0000000..00ee4c5 --- /dev/null +++ b/Sinmai-Internal-Damage/Functions/Sounds.cs @@ -0,0 +1,20 @@ +using System; +using Mai2; +using Manager; +using Mono.Unix.Native; +using UnityEngine; +using VoiceCue = Mai2.Voice_000001.Cue; +using JingleCue = Mai2.Mai2Cue.Cue; + +namespace Sinmai.Functions +{ + public class Sounds + { + public static void InjectSound() + { + // Target: 0 = Left, 1 = Right, 2 = Both. + Manager.SoundManager.PlayJingle((JingleCue)Enum.Parse(typeof(JingleCue), "SE_ENTRY_AIME_OK"), 2); + Manager.SoundManager.PlayVoice((VoiceCue)Enum.Parse(typeof(VoiceCue), "VO_000012"), 2); + } + } +} \ No newline at end of file diff --git a/Sinmai-Internal-Damage/Loader.cs b/Sinmai-Internal-Damage/Loader.cs index dd17bf3..80bf636 100644 --- a/Sinmai-Internal-Damage/Loader.cs +++ b/Sinmai-Internal-Damage/Loader.cs @@ -1,4 +1,5 @@ -using UnityEngine; +using Sinmai.Functions; +using UnityEngine; /* * SharpMonoInjectInfo: @@ -21,6 +22,8 @@ namespace Sinmai Load.AddComponent(); Object.DontDestroyOnLoad(Load); + + Sounds.InjectSound(); } public static void Unload() diff --git a/Sinmai-Internal-Damage/Sinmai-Internal-Damage-Csharp.csproj b/Sinmai-Internal-Damage/Sinmai-Internal-Damage-Csharp.csproj index 0de43cb..58945f9 100644 --- a/Sinmai-Internal-Damage/Sinmai-Internal-Damage-Csharp.csproj +++ b/Sinmai-Internal-Damage/Sinmai-Internal-Damage-Csharp.csproj @@ -258,6 +258,7 @@ +