Compare commits

...

2 Commits

Author SHA1 Message Date
HumanoidSandvichDispenser 7f610c6b32
Merge d63a93bb93 into 516d79d86f 2024-05-29 14:36:31 -07:00
John Montagu, the 4th Earl of Sandvich d63a93bb93
Add TimerExtensions 2024-05-27 12:57:45 -07:00
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);
}
}