SimpleTimer

=Timer.cs=

Author
zombience aka Jason Araujo

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

Timer 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

=Timer.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.