using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.InputSystem; using UnityEngine.InputSystem.UI; using UnityEngine.EventSystems; public class EventSystemManager : Singleton { [Header("Component References")] public EventSystem eventSystem; public InputSystemUIInputModule inputSystemUIInputModule; public void SetCurrentSelectedGameObject(GameObject newSelectedGameObject) { eventSystem.SetSelectedGameObject(newSelectedGameObject); Button newSelectable = newSelectedGameObject.GetComponent