Add TimerExtensions
parent
b287f978e3
commit
d63a93bb93
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue