36 lines
917 B
C#
36 lines
917 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class CollectionPanel : uScrollViewMgr
|
||
|
|
{
|
||
|
|
[SerializeField] private TMPro.TextMeshProUGUI TitleTMP, t_type;
|
||
|
|
public ShowPanel m_ShowPanel;
|
||
|
|
|
||
|
|
private int CurAlbumType = 1;
|
||
|
|
|
||
|
|
private void OnEnable()
|
||
|
|
{
|
||
|
|
Set_UI();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void Set_UI()
|
||
|
|
{
|
||
|
|
var curtargetindex = GameManager.DB.GetUnlockTargetIndex(true);
|
||
|
|
DB_HuntingListData huntingListData = DB_HuntingListData.GetEntity(curtargetindex);
|
||
|
|
TitleTMP.text = huntingListData.DBF_Title;
|
||
|
|
t_type.text = $"Type{CurAlbumType}";
|
||
|
|
Set_ScrollView(GameManager.DB.Get_AlbumDatas(CurAlbumType));
|
||
|
|
}
|
||
|
|
|
||
|
|
public void OnClick_Arrow(int add)
|
||
|
|
{
|
||
|
|
CurAlbumType += add;
|
||
|
|
if (CurAlbumType < 1) CurAlbumType = 10;
|
||
|
|
else if (CurAlbumType > 10) CurAlbumType = 1;
|
||
|
|
Set_UI();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void OnClick_Album()
|
||
|
|
{
|
||
|
|
CanvasControl.Ins.Go_Album();
|
||
|
|
}
|
||
|
|
}
|