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