TimerComponent
Declaration
public class Strawberry.Components.Lifecycle.TimerComponent
Inherits: Strawberry.Core.BaseComponent
Properties
Time
Gets or sets the time of the timer. (Seconds) When this value reaches 0 the timer will end and the TimerEndedEvent will be raised.
float Time { get set }
StartTime
float StartTime { get set }
Loop
Gets or sets whether the timer will loop when it ends. If true the time of the timer will restart. (Default is false)
bool Loop { get set }
Methods
OnUpdate override
void OnUpdate()