26 lines
647 BLFS
C#
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);
|
|
}
|
|
}
|