24 lines
396 B
C#
24 lines
396 B
C#
using UnityEngine;
|
|
|
|
namespace Scampz.GameJam.Assets.Scripts
|
|
{
|
|
public class BGMManager : MonoBehaviour
|
|
{
|
|
public static BGMManager Instance { get; private set; }
|
|
|
|
[SerializeField]
|
|
private AudioSource audioSource;
|
|
|
|
[SerializeField]
|
|
private AudioClip[] backgroundMusic;
|
|
|
|
private void Awake()
|
|
{
|
|
if (Instance == null)
|
|
Instance = this;
|
|
}
|
|
|
|
|
|
}
|
|
}
|