Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/SFXGameManagement.cs
2026-03-04 09:37:33 +08:00

31 lines
685 B
C#

using DarkTonic.MasterAudio;
using UnityEngine;
public static class SFXGameManagement
{
public static void PlaySound(string soundName)
{
MasterAudio.PlaySound(soundName);
}
public static void PlaySound(string soundName, Transform target)
{
MasterAudio.PlaySound3DAtTransform(soundName, target);
}
public static void StopSound(string soundName)
{
MasterAudio.StopAllOfSound(soundName);
}
public static void ChangePitch(string soundName, float pitchValue)
{
MasterAudio.ChangeVariationPitch(soundName, changeAllVariations: true, "", pitchValue);
}
public static bool IsSoundPlaying(string soundName)
{
return MasterAudio.IsSoundGroupPlaying(soundName);
}
}