/* * author: mark joshwel, sai puay * date: 11/8/2024 * description: script for handling pause overlay functions */ using UnityEngine; using UnityEngine.UIElements; /// /// class managing the pause overlay and button function invocations /// public class OverlayPauseMenu : CommonMenu { /// /// button to resume the run /// private Button _buttonResume; /// /// button to retry the run /// private Button _buttonRetry; /// /// button to return to the main menu /// private Button _buttonReturn; /// /// 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.OverlayPauseMenu; base.OnEnable(); // get the resume button from the ui root and subscribe appropriate functions _buttonResume = UI.Q