34 lines
857 B
C#
34 lines
857 B
C#
using TMPro;
|
|
|
|
public class AlbumUI : uScrollViewMgr
|
|
{
|
|
public TextMeshProUGUI[] texts; // 0 이름, 1 카운팅, 2 보유 하트
|
|
|
|
int curGirl = 1;
|
|
|
|
public void Set()
|
|
{
|
|
gameObject.SetActive(true);
|
|
var lst = table_album.Ins.Get_DataList(curGirl);
|
|
Set_ScrollView(lst);
|
|
texts[0].text = table_girl.Ins.Get_Data(curGirl).s_Name;
|
|
|
|
var count = 0;
|
|
for (int i = 0; i < list_CardBase.Count; i++)
|
|
{
|
|
if ((list_CardBase[i] as AlbumCard).IsObtain())
|
|
++count;
|
|
}
|
|
texts[1].text = $"{count}/{lst.Count}";
|
|
|
|
texts[2].text = SaveMgr.Ins.Get_Money(eMoney.AlbumOpen).ToString();
|
|
}
|
|
|
|
public void OnClick_Arrow(int add)
|
|
{
|
|
curGirl += add;
|
|
if (curGirl > 8) curGirl = 1;
|
|
else if (curGirl < 1) curGirl = 8;
|
|
Set();
|
|
}
|
|
} |