Files
SVSimServer/SVSim.BattleEngine/Engine/Wizard/MyPageRewardDialogBoxCount.cs
gamer147 824309ec44 feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the
AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed
the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
2026-06-05 20:30:59 -04:00

35 lines
880 B
C#

using UnityEngine;
namespace Wizard;
public class MyPageRewardDialogBoxCount : MonoBehaviour
{
[SerializeField]
private UILabel _label;
public static GameObject Create(GameObject prefab, CampaignBattleWin info)
{
GameObject obj = Object.Instantiate(prefab);
obj.GetComponentInChildren<MyPageRewardDialogBoxCount>().Initialize(info);
return obj;
}
private void Initialize(CampaignBattleWin info)
{
string text = "";
switch (info.BoxStatus)
{
case CampaignBattleWin.eBoxStatus.NO_GET:
text = Data.SystemText.Get("MyPage_0078");
break;
case CampaignBattleWin.eBoxStatus.ACTIVE:
text = Data.SystemText.Get("MyPage_0079");
break;
case CampaignBattleWin.eBoxStatus.ALREADY_GET:
text = Data.SystemText.Get("MyPage_0080");
break;
}
_label.text = Data.SystemText.Get("MyPage_0077") + " " + text;
}
}