using System; using UnityEngine; using UnityEngine.UIElements; namespace UI { [RequireComponent(typeof(UIDocument))] public class MainMenu : MonoBehaviour { public event Action OnStartGame; public event Action OnExitGame; private Button _startGameButton; private Button _exitGameButton; private void Awake() { _startGameButton = GetComponent().rootVisualElement.Q