31 lines
748 B
C#
31 lines
748 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class GachaUI : uScrollViewMgr
|
|
{
|
|
public GameObject[] gos_grade;
|
|
|
|
List<(eMoney, int)> list_log = new List<(eMoney, int)>();
|
|
|
|
public void Set()
|
|
{
|
|
gameObject.SetActive(true);
|
|
DSUtil.InActivateGameObjects(gos_grade);
|
|
}
|
|
|
|
public void OnClick_Lucky()
|
|
{
|
|
|
|
}
|
|
|
|
public void OnClick_Gacha()
|
|
{
|
|
var gradedata = table_gacharateconfig.Ins.Get_RadomData();
|
|
DSUtil.InActivateGameObjects(gos_grade, gradedata.n_GachaGrade - 1);
|
|
var reward = table_gachareward.Ins.Get_Reward(gradedata.n_GachaGrade);
|
|
list_log.Add(reward);
|
|
Set_ScrollView(list_log);
|
|
Set_Vertical_ScrollEnd(0);
|
|
}
|
|
} |