22 lines
422 B
C#
22 lines
422 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class RankingHover : MonoBehaviour, IPointerEnterHandler, IEventSystemHandler, IPointerExitHandler
|
|
{
|
|
public GameObject HoverImage;
|
|
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
HoverImage.SetActive(value: true);
|
|
}
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
HoverImage.SetActive(value: false);
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
}
|
|
}
|