Initial commit
This commit is contained in:
commit
c7b2028f4d
20 changed files with 898 additions and 0 deletions
17
Patches/SFXManager_PlaySwitchSFX_Patch.cs
Normal file
17
Patches/SFXManager_PlaySwitchSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlaySwitchSFX")]
|
||||
public static class SFXManager_PlaySwitchSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.LightSwitchVolume.Add(__instance.m_SwitchOn, 1);
|
||||
Plugin.LightSwitchVolume.Add(__instance.m_SwitchOff, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue