using UnityEngine; namespace Management { public class Services : MonoBehaviour { public static Services Instance { get; private set; } public BGM BGM => bgm; public SFX SFX => sfx; [SerializeField] private BGM bgm; [SerializeField] private SFX sfx; private void Awake() { if (Instance != null && Instance != this) { Destroy(gameObject); return; } Instance = this; DontDestroyOnLoad(gameObject); } } }