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