/*
* author: mark joshwel, sai puay
* date: 11/8/2024
* description: script for handling win failure/dnf overlay functions
*/
using UnityEngine.UIElements;
///
/// class managing the win failure/dnf overlay and button function invocations
///
public class OverlayFailedOverTimeMenu : CommonMenu
{
///
/// 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.OverlayFailedOverTimeMenu;
base.OnEnable();
// get the retry button from the ui root and subscribe appropriate functions
_buttonRetry = UI.Q