Ignition / GenericHelpers
Namespace
Playniax.IgnitionScript can be found in
Assets/Playniax/Framework/Ignition/Scripts/GenericHelpers.cs
Class Timer
DescriptionThe Timer class is used by the spawners for example.
Public fields | Description |
---|
float timer | Timer |
float interval = 0.15f | Interval |
float intervalRange | Interval Range. Any value over zero triggers random mode (random value is between interval and interval + intervalRange) |
int counter = -1 | Counter. (-1 is endless) |
Public Methods | Description |
---|
bool Update(bool ignoreCounter = false) | Update will return true when timer reaches zero and resets the timer. |