GameTimer
namespace Griff.Runtime;
public sealed class GameTimerA callback scheduled with After or Every. Timers run on game time, so they slow down with Scale and stop while the game is paused.
Properties
Section titled “Properties”Interval
Section titled “Interval”public float Interval { get; }Seconds between repeats, or 0 for a one-shot timer.
IsActive
Section titled “IsActive”public bool IsActive { get; }False once a one-shot timer has fired or the timer was cancelled.
public Entity? Owner { get; }The entity whose removal cancels this timer, if any.
Methods
Section titled “Methods”Cancel
Section titled “Cancel”public void Cancel()