Project_WL/Assets/Script/UI/Ingame/Dungeon/DungeonResult_Maze.cs

21 lines
635 B
C#
Raw Normal View History

2025-01-26 18:40:10 +00:00
using TMPro;
public class DungeonResult_Maze : DungeonResultBase
{
public TextMeshProUGUI[] texts; // 0 결과
public override void Set(bool? win)
{
base.Set(win);
var sdata = ServerInfo.Ins.m_ServerData;
var curFloor = sdata.Get_DungeonLv(eDungeon.d2_Maze);
var nextFloor = MyValue.MyChoiceMapData.n_DungeonLv;
texts[0].text = DSUtil.Format("기존 층수 : {0}\n\n최고 층수 : {1}", curFloor, nextFloor);
if (nextFloor > curFloor)
{
sdata.Set_DungeonLv(eDungeon.d2_Maze, nextFloor);
ServerInfo.Ins.Write(null, false);
}
}
}