Energy Based Objects  2.01
Public Member Functions | Static Public Member Functions | Public Attributes
Timer Class Reference

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

List of all members.

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.

Detailed Description

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.


Member Data Documentation

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.

 All Classes Namespaces Functions Variables Properties Events