22 lines
759 B
C#
22 lines
759 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
|
|
public class DungeonResult_Nightmare : DungeonResultBase
|
|
{
|
|
public TextMeshProUGUI[] texts;
|
|
|
|
public override void Set(bool? win)
|
|
{
|
|
base.Set(win);
|
|
|
|
var BeforeDmg = Math.Truncate(MyValue.MyChoiceMapData.d_NightmareBeforeDmg);
|
|
var CurDmg = Math.Truncate(DungeonInfo.Ins.m_TotalDamage);
|
|
texts[0].text = DSUtil.Format("기존 데미지 : {0}\n\n현재 데미지 : {1}",
|
|
NumberFormatter.FormatNumber(BeforeDmg),
|
|
NumberFormatter.FormatNumber(CurDmg));
|
|
|
|
if (CurDmg > BeforeDmg)
|
|
ServerInfo.Ins.Save_Rank("Rank_Damage", new List<string> { CurDmg.ToString() });
|
|
}
|
|
} |