Initial commit
This commit is contained in:
commit
c7b2028f4d
20 changed files with 898 additions and 0 deletions
17
Patches/SFXInstance_PlayScanningProductSFX_Patch.cs
Normal file
17
Patches/SFXInstance_PlayScanningProductSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXInstance_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXInstance), "PlayScanningProductSFX")]
|
||||
public static class SFXInstance_PlayScanningProductSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXInstance __instance)
|
||||
{
|
||||
Plugin.ScanningProductVolume.Add(__instance.transform.GetChild(0).GetComponent<AudioSource>(), 0.3f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue