Files
JJBB/Assets/Project/Script/GUI/NewYearPage/NewYearSignSmallItem.cs

43 lines
1.0 KiB
C#
Raw Permalink Normal View History

2024-08-23 15:49:34 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using GCGame.Table;
public class NewYearSignSmallItem : UIItemSelect
{
public Image bg; // 背景
public GameObject yetGetBg; //已经领取背景
public GameObject getTag; // 可领取标签
public GameObject cantGetTag; // 不可领取标签
public GameObject yetGetTag; // 已经领取标签
public override void Show(Hashtable hash)
{
ShowInfo((NewYearSign.NewYearSignDayItemData)hash["InitObj"]);
}
private void ShowInfo(NewYearSign.NewYearSignDayItemData info)
{
if (info != null)
{
yetGetBg.SetActive(info.award.state == 2);
getTag.SetActive(info.award.state == 1);
cantGetTag.SetActive(info.award.state == 0);
yetGetTag.SetActive(info.award.state == 2);
}
}
private void Start()
{
}
}