mirror of
https://github.com/HarukaKinen/Sinmai-Internal-Damage.git
synced 2024-11-24 06:50:19 +01:00
Add injection sound
This commit is contained in:
parent
c1bdacb3cc
commit
47249779ca
20
Sinmai-Internal-Damage/Functions/Sounds.cs
Normal file
20
Sinmai-Internal-Damage/Functions/Sounds.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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()
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user