using Ui.Screens; using UnityEngine; using UnityEngine.UI; public class SoundEvent : MonoBehaviour { [SerializeField] string m_soundName; [SerializeField, HideInInspector] private Button _button; private bool _subscribed; private bool _status = true; public bool Status { get { return _status; } set { _status = value; } } public void PlaySound() { if (m_soundName == "") return; if (!SoundsManager.Instance) return; SoundsManager.Instance.PlaySound(m_soundName, 0, false, 1f); } private void Awake() { if (_button == null) _button = GetComponent