using Assets.Scripts; using Assets.Scripts.Menu; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class ControlsMenu : MonoBehaviour { UIHandlerMenu uihandler; MoveDirection direction; PlayerInput playerInput; void Start() { uihandler = GameObject.Find("UIHandler").GetComponent(); direction = MoveDirection.None; playerInput = GetComponent(); } // Update is called once per frame void Update() { changeNameInput(); if(playerInput.currentControlScheme == "Controller"){ if(EventSystem.current.currentSelectedGameObject == null){ EventSystem.current.SetSelectedGameObject(FindFirstObjectByType