2025-08-25 00:23:56 -05:00

30 lines
727 B
C#

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