Shegotwet/Assets/Scripts/UI/AlbumUI.cs

23 lines
496 B
C#
Raw Normal View History

using TMPro;
public class AlbumUI : uScrollViewMgr
{
public TextMeshProUGUI[] texts; // 0 이름
int curGirl = 1;
public void Set()
{
gameObject.SetActive(true);
Set_ScrollView(table_album.Ins.Get_DataList(curGirl));
texts[0].text = table_girl.Ins.Get_Data(curGirl).s_Name;
}
public void OnClick_Arrow(int add)
{
curGirl += add;
if (curGirl > 8) curGirl = 1;
2025-09-11 20:17:41 +00:00
else if (curGirl < 1) curGirl = 8;
Set();
}
}