/*
* author: mark joshwel
* date: 28/6/2024
* description: script for handling pause menu button functions
*/
using UnityEngine;
using UnityEngine.UIElements;
///
/// class managing the credits menu and button function invocations
///
public class PauseMenu : CommonMenu
{
///
/// button to exit the game
///
public Button ButtonExit;
///
/// button to resume the game
///
public Button ButtonResume;
///
/// 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.ScreenPauseMenu;
base.OnEnable();
// get the resume button from the ui root and subscribe appropriate functions
ButtonResume = UI.Q