SimpleTimer

=SimpleTimer.cs=

Author
zombience aka Jason Araujo

Description
SimpleTimer.cs is intended to provide a simple class that can be used to keep track of intervals and drive events.

SimpleTimer constructor takes two arguments:


 * a float indicating the lifetime in seconds of the timer
 * a boolean (default is false) that indicates whether Time.time or Time.fixedTime should be used to run timing

=SimpleTimer.cs code=

Example Usage
To use this example, put TimerTester.cs on a gameObject in the scene. In the inspector, you can see the public variables update as the timer runs. Left mouse button resets timer, right mouse button pauses timer.