21 lines
635 B
C#
21 lines
635 B
C#
|
|
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|