29 lines
668 B
C#
29 lines
668 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class rewardSlotPrefab : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
|
{
|
|
public Image rewardIcon;
|
|
public Text rewardName;
|
|
public Text rewardAmount;
|
|
|
|
public GameObject detailBtm;
|
|
public Text detailText;
|
|
|
|
void OnEnable()
|
|
{
|
|
if (detailBtm != null) detailBtm.SetActive(false);
|
|
}
|
|
|
|
public void OnPointerEnter(PointerEventData eventData)
|
|
{
|
|
if (detailBtm != null) detailBtm.SetActive(true);
|
|
}
|
|
|
|
public void OnPointerExit(PointerEventData eventData)
|
|
{
|
|
if (detailBtm != null) detailBtm.SetActive(false);
|
|
}
|
|
}
|