A TimeManager extension which kills all characters after a timer expires.
More...
|
override string | Header [get] |
| Gets the header string used to describe the component. More...
|
|
float | CurrentTime [get] |
| Gets the current timer value. More...
|
|
override string | Header [get] |
| Gets the header string used to describe the component. More...
|
|
static float | FrameTime [get] |
| Gets the frame time. More...
|
|
static float | MaxFrameTime [get] |
| Gets the maximum possible frame time. More...
|
|
static TimeManager | Instance [get, protected set] |
| Gets a static reference to the time manager if one exists. More...
|
|
static TimeManager | SafeInstance [get] |
| Gets the instance only if it exists will not create a new one. Safe to call from OnDestroy while unregistering listeners. More...
|
|
bool | Paused [get] |
| Are we paused? More...
|
|
virtual string | Header [get] |
| Gets the header string used to describe the component. More...
|
|
virtual string | DocLink [get] |
| Gets a link to documentation site. More...
|
|
virtual string | VideoLink [get] |
| Gets a link to a youtube video. More...
|
|
virtual string | Deprecated [get] |
| If non-null this component is deprecated. The string shows a message indicating how it should be replaced. More...
|
|
A TimeManager extension which kills all characters after a timer expires.
◆ AddTime()
float PlatformerPro.TimeManagerWithTimer.AddTime |
( |
float |
extraTime | ) |
|
Adds the specified amount of time. You can also use a negative value to remove time.
- Returns
- The time.
- Parameters
-
◆ DeregisterListeners()
void PlatformerPro.TimeManagerWithTimer.DeregisterListeners |
( |
| ) |
|
|
protected |
◆ HandleLoad()
void PlatformerPro.TimeManagerWithTimer.HandleLoad |
( |
object |
sender, |
|
|
SceneEventArgs |
e |
|
) |
| |
|
protected |
Handles the load event by resetting timer.
- Parameters
-
sender | Sender. |
e | Event args. |
◆ HandleRespawn()
void PlatformerPro.TimeManagerWithTimer.HandleRespawn |
( |
object |
sender, |
|
|
CharacterEventArgs |
e |
|
) |
| |
|
protected |
Handles the respawn event by resetting timer.
- Parameters
-
sender | Sender. |
e | Event args. |
◆ KillAllCharacters()
void PlatformerPro.TimeManagerWithTimer.KillAllCharacters |
( |
| ) |
|
|
protected |
◆ RegisterListeners()
void PlatformerPro.TimeManagerWithTimer.RegisterListeners |
( |
| ) |
|
|
protected |
◆ ResetTimer()
void PlatformerPro.TimeManagerWithTimer.ResetTimer |
( |
| ) |
|
|
protected |
◆ killSent
bool PlatformerPro.TimeManagerWithTimer.killSent |
|
protected |
have we timed out and sent the kill message.
◆ levelManager
LevelManager PlatformerPro.TimeManagerWithTimer.levelManager |
|
protected |
Cached reference to level manager used for event listeners.
◆ maxTime
float PlatformerPro.TimeManagerWithTimer.maxTime |
|
protected |
◆ timeLimit
float PlatformerPro.TimeManagerWithTimer.timeLimit |
|
protected |
◆ timer
float PlatformerPro.TimeManagerWithTimer.timer |
|
protected |
The actual timer, when this reaches zero all characters will be killed.
◆ CurrentTime
float PlatformerPro.TimeManagerWithTimer.CurrentTime |
|
get |
Gets the current timer value.
◆ Header
override string PlatformerPro.TimeManagerWithTimer.Header |
|
get |
Gets the header string used to describe the component.
The header.
The documentation for this class was generated from the following file: