using TMPro; using UnityEngine; public class MapChoiceUI_Dungeon_Maze : MapChoiceUI_DungeonBase { public TextMeshProUGUI[] texts_maze; // 0 랭킹, 1 최고 층수 public override void Set() { base.Set(); MyValue.MyChoiceMapData.n_Difficult = 1; SelectLv = Mathf.Max(1, SelectLv - 1); texts_maze[0].text = texts_maze[1].text = ""; ServerInfo.Ins.Get_MyRank(MyValue.dic_Leaderboard[m_mapData.e_Dungeon], my => { if (DSUtil.CheckNull(my)) { texts_maze[0].text = DSUtil.Format(323, 99999); } else { texts_maze[0].text = DSUtil.Format(323, my.Rank); //texts_maze[1].text = DSUtil.Format(324, my.Scores[0]); } texts_maze[1].text = DSUtil.Format(324, SelectLv); }); } public override void OnClick_GoDungeon() { if (ServerInfo.Ins.m_ServerData.Check_ItemAmount(m_mapData.n_TicketID, 1)) { Use_Ticket(); MyValue.MyChoiceMapData.Set_MazeMapIndex(); Go_Dungeon(); } } }