28 lines
518 B
C#
28 lines
518 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Rewired.UI.ControlMapper
|
|
{
|
|
[AddComponentMenu("")]
|
|
public abstract class UIElementInfo : MonoBehaviour, ISelectHandler, IEventSystemHandler
|
|
{
|
|
public string identifier;
|
|
|
|
public int intData;
|
|
|
|
public Text text;
|
|
|
|
public event Action<GameObject> OnSelectedEvent;
|
|
|
|
public void OnSelect(BaseEventData eventData)
|
|
{
|
|
if (this.OnSelectedEvent != null)
|
|
{
|
|
this.OnSelectedEvent(base.gameObject);
|
|
}
|
|
}
|
|
}
|
|
}
|