Files
2024-09-22 21:45:37 +02:00

26 lines
647 BLFS
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class Asterisk : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
[SerializeField] private RawImage asteriskInfoPanel;
void Start()
{
asteriskInfoPanel.color = new Color(1, 1, 1, 0);
}
void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData)
{
asteriskInfoPanel.color = new Color(1, 1, 1, 1);
}
void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
{
asteriskInfoPanel.color = new Color(1, 1, 1, 0);
}
}