Count-down class.
Can only be used in a MonoBehaviour script because of the "Time.time" use.
Properties | |
bool | IsUp [get] |
Return True if the duration of the count-down has elapsed or if the count-down has not started yet. Return False otherwise. More... | |
float | Duration [get, set] |
The count-down duration. More... | |
Public Member Functions | |
CountDown (float duration=0f) | |
void | start () |
Start the count-down. More... | |
float | getRemainingSecond () |
Return the remaining number of second of the count-down. More... | |
void | reset () |
Reset the count-down. More... | |
|
getset |
The count-down duration.
|
get |
Return True if the duration of the count-down has elapsed or if the count-down has not started yet. Return False otherwise.
Nectunia.Utility.CountDown.CountDown | ( | float | duration = 0f | ) |
float Nectunia.Utility.CountDown.getRemainingSecond | ( | ) |
Return the remaining number of second of the count-down.
void Nectunia.Utility.CountDown.reset | ( | ) |
Reset the count-down.
void Nectunia.Utility.CountDown.start | ( | ) |
Start the count-down.