Свойство | Type | Description | |
---|---|---|---|
time | TimeUtils |
Méthode | Description | |
---|---|---|
AddTimer ( float rate, Action callBack ) : int |
Creates new timer
|
|
AddTimer ( float rate, int ticks, Action callBack ) : int |
Creates new timer
|
|
RemoveTimer ( int timerId ) : void |
Removes timer
|
Méthode | Description | |
---|---|---|
Awake ( ) : void |
Awake
|
|
Remove ( ) : void |
Timer removal queue handler
|
|
Tick ( ) : void |
Updates timers
|
|
Update ( ) : void |
public AddTimer ( float rate, Action callBack ) : int | ||
rate | float | Tick rate |
callBack | Action | Callback method |
Résultat | int |
public AddTimer ( float rate, int ticks, Action callBack ) : int | ||
rate | float | Tick rate |
ticks | int | Number of ticks before timer removal |
callBack | Action | Callback method |
Résultat | int |
public RemoveTimer ( int timerId ) : void | ||
timerId | int | Timer GUID |
Résultat | void |