商店除发放和货币扣除,其余部分完毕。加入药水icon免费包
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user