using UI; using UnityEngine; namespace Managers { public class Services : MonoBehaviour { public static Services Instance { get; private set; } public PlayerJoiner PlayerJoiner => playerJoiner; public BGM BGM => bgm; public HUDService HUD => hudService; [SerializeField] private PlayerJoiner playerJoiner; [SerializeField] private BGM bgm; [SerializeField] private HUDService hudService; public void Awake() { if (Instance) { Destroy(gameObject); return; } Instance = this; DontDestroyOnLoad(gameObject); } } }