using UnityEngine; using UnityEngine.UIElements; /// /// singleton for a single source of truth game state and flow management /// public class SideViewUI : MonoBehaviour { /// /// settings button for showing the settings menu /// private Button _accountButton; /// /// settings button for showing the settings menu /// private Label _chromaAccuracyText; /// /// settings button for showing the settings menu /// private Label _hueAccuracyText; /// /// leaderboard button for showing the leaderboard /// private Button _leaderboardButton; /// /// settings button for showing the settings menu /// private Label _lightnessAccuracyText; /// /// play button for starting the game /// private Button _playButton; /// /// settings button for showing the settings menu /// private Label _playerNameText; /// /// settings button for showing the settings menu /// private Label _playerRatingText; /// /// function to subscribe button events to their respective functions /// private void OnEnable() { var ui = GetComponent().rootVisualElement; _playButton = ui.Q