SkillTreeTimeWorker

Base class that helps with time-related functionality.

Properties

NameDescriptionType

remainingTime

The remaining time.

float

onTimeUpdated

The action to execute each update.

Action<float>

onComplete

The action to execute on complete.

Action

Methods

CheckForCompletion

Overridable

Checks if the worker is complete. If so, invoke the on complete action and destroy the object.

CreateInstance

Return Type: SkillTreeTimeWorker

Creates and starts a time worker.

Parameters

NameDescriptionType

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

Last updated