![]() |
Adventure Creator
1.76.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
Timer () | |
Timer (int[] idArray) | |
void | SetDefaultState () |
void | Update () |
void | Start () |
void | Resume (bool resetTicker) |
Resumes the Timer More... | |
void | Stop () |
void | ShowGUI () |
Static Public Member Functions | |
static string | CreateSaveData (List< Timer > timers) |
Creates a save string containing the enabled state of a list of timers More... | |
static void | LoadSaveData (string dataString) |
Restores the enabled states of the game's timers from a saved data string More... | |
Properties | |
int | ID [get] |
bool | IsRunning [get] |
float | Progress [get] |
float | Value [get] |
GVar | Variable [get] |
string | Label [get] |
A value that can be changed over time
AC.Timer.Timer | ( | ) |
The default Constructor.
|
static |
Creates a save string containing the enabled state of a list of timers
timers | The timers to save |
|
static |
Restores the enabled states of the game's timers from a saved data string
dataString | The data string to load |
void AC.Timer.Resume | ( | bool | resetTicker | ) |
Resumes the Timer
resetTicker | If True, the ticker in between value updates is reset |
void AC.Timer.SetDefaultState | ( | ) |
Sets the enabled state to the default value.
void AC.Timer.Start | ( | ) |
Starts the Timer
void AC.Timer.Stop | ( | ) |
Stops the Timer
void AC.Timer.Update | ( | ) |
Updates the Timer. This is called every frame by StateHandler.
|
get |
The Timer's unique ID
|
get |
If True, the Timer is running
|
get |
The Timer's Editor label
|
get |
The Timer's progress, as a decimal
|
get |
The Timer's current value