事件系统扩展
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user