WXMC/.svn/pristine/8b/8b01a37ce8ad07d3f2656ddd517ce99cce8a4d70.svn-base
2024-12-04 16:18:46 +08:00

34 lines
658 B
Plaintext

using UnityEngine;
using UnityEngine.UI;
public class DailyRewardUI : MonoBehaviour
{
public Text txtDay;
public Text txtReward;
public Image imgBackground;
public int day;
public int reward;
public bool isClaimed;
public bool isAvailable;
public Color availableColor;
public Color claimedColor;
public void Refresh()
{
txtDay.text = "Day " + day.ToString();
txtReward.text = reward.ToString();
if (isAvailable)
{
imgBackground.color = availableColor;
}
if (isClaimed)
{
imgBackground.color = claimedColor;
}
}
}