/* * author: mark joshwel * date: 11/8/2024 * description: script for handling main menu button functions */ using UnityEngine; using UnityEngine.UIElements; /// /// class managing the main menu and button function invocations /// public class ScreenMainMenu : CommonMenu { /// /// button to quit game /// private Button _buttonExit; /// /// button to show the options menu /// private Button _buttonOptions; /// /// button to play game /// private Button _buttonPlay; /// /// function to associate a display state with the menu, /// and subscribe button events to their respective functions /// public override void OnEnable() { // set the associated state and call the base OnEnable associatedState = GameManager.DisplayState.ScreenMainMenu; base.OnEnable(); // get the start button from the ui root and subscribe appropriate functions _buttonPlay = UI.Q