2025-09-12 05:23:34 +00:00
|
|
|
using System.Collections.Generic;
|
2025-09-12 04:10:11 +00:00
|
|
|
using UnityEngine;
|
2025-09-12 05:23:34 +00:00
|
|
|
using UnityEngine.UI;
|
2025-09-12 04:10:11 +00:00
|
|
|
|
2025-09-12 05:23:34 +00:00
|
|
|
public class GachaUI : uScrollViewMgr
|
2025-09-12 04:10:11 +00:00
|
|
|
{
|
2025-09-12 05:23:34 +00:00
|
|
|
public GameObject[] gos_grade;
|
|
|
|
|
|
|
|
|
|
List<(eMoney, int)> list_log = new List<(eMoney, int)>();
|
|
|
|
|
|
2025-09-12 04:10:11 +00:00
|
|
|
public void Set()
|
|
|
|
|
{
|
|
|
|
|
gameObject.SetActive(true);
|
2025-09-12 05:23:34 +00:00
|
|
|
DSUtil.InActivateGameObjects(gos_grade);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnClick_Lucky()
|
|
|
|
|
{
|
|
|
|
|
|
2025-09-12 04:10:11 +00:00
|
|
|
}
|
2025-09-12 04:54:04 +00:00
|
|
|
|
|
|
|
|
public void OnClick_Gacha()
|
|
|
|
|
{
|
|
|
|
|
var gradedata = table_gacharateconfig.Ins.Get_RadomData();
|
2025-09-12 05:23:34 +00:00
|
|
|
DSUtil.InActivateGameObjects(gos_grade, gradedata.n_GachaGrade - 1);
|
2025-09-12 04:54:04 +00:00
|
|
|
var reward = table_gachareward.Ins.Get_Reward(gradedata.n_GachaGrade);
|
2025-09-12 05:23:34 +00:00
|
|
|
list_log.Add(reward);
|
|
|
|
|
Set_ScrollView(list_log);
|
|
|
|
|
Set_Vertical_ScrollEnd(0);
|
2025-09-12 04:54:04 +00:00
|
|
|
}
|
2025-09-12 04:10:11 +00:00
|
|
|
}
|