SupaLidlGame/Extensions/Timer.cs

13 lines
224 B
C#
Raw Normal View History

2024-05-27 12:57:45 -07:00
using Godot;
namespace SupaLidlGame.Extensions;
public static class TimerExtensions
{
public static void Restart(this Timer timer, double timeSec = -1)
{
timer.Stop();
timer.Start(timeSec);
}
}