using UnityEngine; using UnityEngine.EventSystems; namespace Michsky.UI.Heat { [AddComponentMenu("Heat UI/Input/Input Navigation Limiter")] public class InputNavigationLimiter : MonoBehaviour { private void Update() { if (ControllerManager.instance != null && EventSystem.current.currentSelectedGameObject.transform.parent != base.transform.parent) { ControllerManager.instance.SelectUIObject(base.transform.GetChild(0).gameObject); } } } }