using System; using UnityEngine; using UnityEngine.EventSystems; namespace AibisDream.Framework { [RequireComponent(typeof(EventSystem))] public class EventSystemExtension : MonoBehaviour { public string targetTag; #region 物体索引 private GameObject _lastObject; #endregion public void LateUpdate() { // if () // { // // } var curGameObject = EventSystem.current.currentSelectedGameObject; } } }