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

30 lines
759 B
C#
Raw Normal View History

using TMPro;
public class DungeonResult_Mimic : DungeonResultBase
{
public TextMeshProUGUI[] texts; // 0 성공 or 실패
public MoneyForm[] moneys;
public override void Set(bool win)
{
base.Set(win);
var sdata = ServerInfo.Ins.m_ServerData;
2025-01-24 03:04:50 +00:00
// 입장권 차감
var mapData = MyValue.MyChoiceMapData.Get_MapData();
sdata.Use_Item(mapData.n_TicketID, 1);
// 결과 표시
texts[0].text = table_localtext.Ins.Get_Text(win ? 321 : 322);
moneys[0].Set(1, 0);
moneys[1].Set(2, 0);
if (win)
{
2025-01-24 03:04:50 +00:00
// TODO 정인호 : 승리 시 보상 지급
sdata.Add_DungeonLv(eDungeon.d1_Mimic);
}
2025-01-24 03:04:50 +00:00
ServerInfo.Ins.Write(null);
}
}