1
0
mirror of https://github.com/HarukaKinen/Sinmai-Internal-Damage.git synced 2024-11-28 00:20:50 +01:00

Add injection sound

This commit is contained in:
Moe Kotoki 2022-02-21 11:50:02 +08:00
parent c1bdacb3cc
commit 47249779ca
3 changed files with 25 additions and 1 deletions

View File

@ -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);
}
}
}

View File

@ -1,4 +1,5 @@
using UnityEngine;
using Sinmai.Functions;
using UnityEngine;
/*
* SharpMonoInjectInfo:
@ -21,6 +22,8 @@ namespace Sinmai
Load.AddComponent<UI.Menu>();
Object.DontDestroyOnLoad(Load);
Sounds.InjectSound();
}
public static void Unload()

View File

@ -258,6 +258,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Functions\Sounds.cs" />
<Compile Include="Functions\Timer.cs" />
<Compile Include="Functions\Skins.cs" />
<Compile Include="Loader.cs" />