using Assets.Scripts.Interfaces; using UnityEngine; using UnityEngine.UIElements; public class TopPanel : MonoBehaviour { private Label _timeLabel; private Label _moneyLabel; private Label _locationLabel; private VisualElement _energy; private VisualElement _food; void Start() { GameManager.Instance.Time.OnMinuteChanged -= UpdateTime; GameManager.Instance.Time.OnMinuteChanged += UpdateTime; var root = GetComponent().rootVisualElement; _timeLabel = root.Q