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.
This commit is contained in:
28
SVSim.BattleEngine/Engine/TimeLeftUpdate.cs
Normal file
28
SVSim.BattleEngine/Engine/TimeLeftUpdate.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using Wizard;
|
||||
|
||||
public class TimeLeftUpdate : MonoBehaviour
|
||||
{
|
||||
[NonSerialized]
|
||||
public MailData mailData;
|
||||
|
||||
[SerializeField]
|
||||
public UILabel timeLeft;
|
||||
|
||||
public void UpdateTime()
|
||||
{
|
||||
if (mailData != null)
|
||||
{
|
||||
SystemText systemText = Data.SystemText;
|
||||
if (mailData.limit_type == 1)
|
||||
{
|
||||
timeLeft.text = Mail.GetTimeLeft(mailData.reward_limit_time);
|
||||
}
|
||||
else
|
||||
{
|
||||
timeLeft.text = systemText.Get("Mail_0030");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user