Skip to main content

Interface ITimerService

A service that provides timer-based functionality, including elapsed time tracking and visual thresholds for blinking or warnings.

public interface ITimerService : IUnityGameService

Implements​

IUnityGameService

Properties​

ElapsedTime​

Total time elapsed since the timer started.

float ElapsedTime { get; }

Property Value​

float

RemainingTime​

Remaining time in whole seconds.

int RemainingTime { get; }

Property Value​

int

TimeLimit​

The time limit set for the timer, in seconds.

float TimeLimit { get; }

Property Value​

float

TimerBlinkThreshold​

Threshold (in seconds) below which the timer may start blinking or visually warning the user.

float TimerBlinkThreshold { get; }

Property Value​

float

  • Properties
    • ElapsedTime
    • RemainingTime
    • TimeLimit
    • TimerBlinkThreshold