Timer
Timer
- stopwatch : bevy_time::stopwatch::Stopwatch
- duration : bevy_utils::Duration
- mode : bevy_time::timer::TimerMode
- finished : bool
- times_finished_this_tick : u32
Description
Tracks elapsed time. Enters the finished state once
duration
is reached.Non repeating timers will stop tracking and stay in the finished state until reset. Repeating timers will only be in the finished state on each tick
duration
is reached or exceeded, and can still be reset at any given point.Paused timers will not have elapsed time increased.
Note that in order to advance the timer
tick
MUST be called.