Antura  1.1.0
Antura.Minigames.CountdownTimer Class Reference

Concrete implementation of ITimer that counts down and triggers an event when the time is up. Used by minigames. More...

Inheritance diagram for Antura.Minigames.CountdownTimer:
Antura.Minigames.ITimer

Public Member Functions

void Start ()
 
void Stop ()
 
void Reset ()
 
void Reset (float newDuration)
 
 CountdownTimer (float duration)
 
void Update (float delta)
 

Properties

bool IsRunning [get]
 
float Duration [get]
 
float CurrentPercentage [get]
 
float Time [get]
 
- Properties inherited from Antura.Minigames.ITimer
bool IsRunning [get]
 
float Time [get]
 

Events

System.Action onTimesUp
 

Detailed Description

Concrete implementation of ITimer that counts down and triggers an event when the time is up. Used by minigames.

Constructor & Destructor Documentation

◆ CountdownTimer()

Antura.Minigames.CountdownTimer.CountdownTimer ( float  duration)

Member Function Documentation

◆ Reset() [1/2]

void Antura.Minigames.CountdownTimer.Reset ( )

◆ Reset() [2/2]

void Antura.Minigames.CountdownTimer.Reset ( float  newDuration)

◆ Start()

void Antura.Minigames.CountdownTimer.Start ( )

◆ Stop()

void Antura.Minigames.CountdownTimer.Stop ( )

◆ Update()

void Antura.Minigames.CountdownTimer.Update ( float  delta)

Property Documentation

◆ CurrentPercentage

float Antura.Minigames.CountdownTimer.CurrentPercentage
get

◆ Duration

float Antura.Minigames.CountdownTimer.Duration
get

◆ IsRunning

bool Antura.Minigames.CountdownTimer.IsRunning
get

◆ Time

float Antura.Minigames.CountdownTimer.Time
get

Event Documentation

◆ onTimesUp

System.Action Antura.Minigames.CountdownTimer.onTimesUp

The documentation for this class was generated from the following file: