Add TimerExtensions

pull/37/head
John Montagu, the 4th Earl of Sandvich 2024-05-27 12:57:45 -07:00
parent b287f978e3
commit d63a93bb93
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
using Godot;
namespace SupaLidlGame.Extensions;
public static class TimerExtensions
{
public static void Restart(this Timer timer, double timeSec = -1)
{
timer.Stop();
timer.Start(timeSec);
}
}