Effect processed after a certain time has elapsed. More...
Public Member Functions | |
DelayedExecutor () | |
Constructor. | |
DelayedExecutor (float time, Action action) | |
Constructor. | |
Static Public Member Functions | |
static DelayedExecutor | CreateAndStart (float time, Action action) |
Creates an instance and starts the effect. | |
Protected Member Functions | |
override void | OnStart () |
Start processing. | |
override EffectUpdateResponse | OnUpdate (float elapsedTime) |
Update processing. | |
override void | OnStop () |
Stop processing. | |
Properties | |
float | Time [get, set] |
Obtains and sets the delay time. | |
Action | Action [get, set] |
Obtains and sets the delegate of the running process. |
Effect processed after a certain time has elapsed.
DelayedExecutor | ( | float | time, |
Action | action | ||
) |
Constructor.
time | Delay time (ms) |
action | Running process |
static DelayedExecutor CreateAndStart | ( | float | time, |
Action | action | ||
) | [static] |
Creates an instance and starts the effect.
time | Delay time (ms) |
action | Running process |
override EffectUpdateResponse OnUpdate | ( | float | elapsedTime | ) | [protected, virtual] |
Update processing.
elapsedTime | Elapsed time from previous update (ms) |
Implements Effect.
float Time [get, set] |
Obtains and sets the delay time.
(ms) The process is executed at the first frame after the set time has elapsed. When 0, it is executed at the next frame.