/* * author: mark joshwel * date: 30/5/2024 * description: credits menu script for handling credits menu button functions */ using UnityEngine; using UnityEngine.UIElements; /// /// class managing the credits menu and button function invocations /// public class CreditsMenu : CommonMenu { /// /// button to return to main menu /// public Button ButtonReturn; /// /// function to associate a display state with the menu, /// and subscribe button events to their respective functions /// public override void OnEnable() { associatedState = GameManager.DisplayState.ScreenCreditsMenu; base.OnEnable(); // get the start button from the ui root and subscribe appropriate functions ButtonReturn = UI.Q