43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|