mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-15 16:04:44 +01:00
24 lines
367 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|