事件系统扩展

This commit is contained in:
2025-01-16 11:37:14 +08:00
parent 13bf57e84a
commit cb3eff896d
5 changed files with 65 additions and 197 deletions
@@ -0,0 +1,29 @@
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;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8e1d0d6ab059a9b4a8979dbd0c8b2b68
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: