![]() |
Energy Based Objects
2.01
|
A timer that relies on FixedUpdate via Time.deltaTime and calls a function when the time has passed : Useful for delaying things like gun shots. More...
Public Member Functions | |
| delegate void | TimerFunction () |
Static Public Member Functions | |
| static Timer | AddTimer (GameObject gameObject, TimerFunction methodToCall, float time) |
| static Timer | AddTimer (GameObject gameObject, TimerFunction methodToCall, float time, string name) |
| static Timer | AddTimer (GameObject gameObject, TimerFunction methodToCall, float time, float speed) |
| static Timer | AddTimer (GameObject gameObject, TimerFunction methodToCall, float time, float speed, string name) |
Public Attributes | |
| string | timerName |
| Optional name to find a specific timer on a game object with multiple timers. | |
| float | time |
| float | speed |
| Speed at which the time goes to 0. | |
A timer that relies on FixedUpdate via Time.deltaTime and calls a function when the time has passed : Useful for delaying things like gun shots.
| float speed |
Speed at which the time goes to 0.
| string timerName |
Optional name to find a specific timer on a game object with multiple timers.
1.7.5.1