Skip to content

GameTimer

namespace Griff.Runtime;
public sealed class GameTimer

A callback scheduled with After or Every. Timers run on game time, so they slow down with Scale and stop while the game is paused.

public float Interval { get; }

Seconds between repeats, or 0 for a one-shot timer.

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.

public void Cancel()