Ignition / GenericHelpers

Namespace Playniax.Ignition

Script can be found in Assets/Playniax/Framework/Ignition/Scripts/GenericHelpers.cs

Class Timer

Description

The Timer class is used by the spawners for example.

Public fieldsDescription
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 MethodsDescription
bool Update(bool ignoreCounter = false)Update will return true when timer reaches zero and resets the timer.