30 lines
557 B
C#
30 lines
557 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
|