22 lines
381 B
C#
22 lines
381 B
C#
using UnityEngine;
|
|
|
|
public class MasterAudioPlayer : MonoBehaviour
|
|
{
|
|
public string soundName;
|
|
|
|
public void PlaySound(string soundName)
|
|
{
|
|
SFXGameManagement.PlaySound(soundName);
|
|
}
|
|
|
|
public void StopSound(string soundName)
|
|
{
|
|
SFXGameManagement.StopSound(soundName);
|
|
}
|
|
|
|
public void PlaySound(Transform transform)
|
|
{
|
|
SFXGameManagement.PlaySound(soundName, transform);
|
|
}
|
|
}
|