21 lines
536 B
C#
21 lines
536 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class UI_FunctionHoverTarget : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
|
{
|
|
public UI_FunctionHoverGuide guide;
|
|
public UI_FunctionHoverEntry entry;
|
|
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
if (guide != null && entry != null)
|
|
guide.ApplyEntry(entry);
|
|
}
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
if (guide != null && entry != null)
|
|
guide.ClearEntry(entry);
|
|
}
|
|
}
|