2025-11-25 19:58:58 +00:00
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class AttandanceUI : uScrollViewMgr
|
|
|
|
|
{
|
|
|
|
|
public AttandacneCard Day7;
|
|
|
|
|
public Image i_btn;
|
|
|
|
|
|
|
|
|
|
public void Set()
|
|
|
|
|
{
|
|
|
|
|
gameObject.SetActive(true);
|
|
|
|
|
var lst = table_attandance.Ins.Get_DataList();
|
|
|
|
|
Set_ScrollView(lst.FindAll(f=>f.n_Day < 7));
|
|
|
|
|
Day7.Set(lst.Find(f => f.n_Day == 7));
|
2025-12-15 02:20:16 +00:00
|
|
|
i_btn.sprite = UIAtlasMgr.Ins.Get_Sprite(SaveMgr.Ins.CanGet_Attandance() ? "red_btn_long" : "btn_gray");
|
2025-11-25 19:58:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnClick_Get()
|
|
|
|
|
{
|
|
|
|
|
if (SaveMgr.Ins.CanGet_Attandance())
|
|
|
|
|
{
|
|
|
|
|
SaveMgr.Ins.Get_AttandanceReward();
|
|
|
|
|
Set();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|