SkillTreeTimeWorker
Last updated
Last updated
Base class that helps with time-related functionality.
Name | Description | Type |
---|---|---|
Overridable
Checks if the worker is complete. If so, invoke the on complete action and destroy the object.
Return Type: SkillTreeTimeWorker
Creates and starts a time worker.
Parameters
Name | Description | Type |
---|---|---|
remainingTime
The remaining time.
float
onTimeUpdated
The action to execute each update.
Action<float>
onComplete
The action to execute on complete.
Action
totalLength
The total length of time that the worker will be active for.
float
onTimeUpdated
An action to perform whenever time is updated. Default: null.
Action<float>
onComplete
An action to perform when this worker is complete. Default: null.
Action
instanceName
The name of the instance. Default: "SkillTreeTimeWorker".
string