Files
BH3/Assets/Scripts/Assembly-CSharp/MoleMole/LDEvtWaitForSeconds.cs
2025-08-13 09:26:42 +08:00

24 lines
367 B
C#

using UnityEngine;
namespace MoleMole
{
public class LDEvtWaitForSeconds : BaseLDEvent
{
private float timeLeft;
public LDEvtWaitForSeconds(double t)
{
timeLeft = (float)t;
}
public override void Core()
{
timeLeft -= Singleton<LevelManager>.Instance.levelEntity.TimeScale * Time.deltaTime;
if (timeLeft <= 0f)
{
Done();
}
}
}
}