31 lines
674 B
C#
31 lines
674 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class GachaLuckyResult : AddrHandleBase
|
|
{
|
|
public Image i_girl;
|
|
public GameObject go_reward;
|
|
public TextMeshProUGUI t_heartamount;
|
|
|
|
private void Awake()
|
|
{
|
|
t_heartamount.text = table_GlobalValue.Ins.Get_Int("LuckyGachaMaxHeart_Amount").ToString();
|
|
}
|
|
|
|
public void Set(albumtabledata data)
|
|
{
|
|
gameObject.SetActive(true);
|
|
|
|
if (data != null)
|
|
{
|
|
Load_Image(i_girl, data.s_Image);
|
|
go_reward.SetActive(false);
|
|
}
|
|
else
|
|
{
|
|
i_girl.enabled = false;
|
|
go_reward.SetActive(true);
|
|
}
|
|
}
|
|
} |