Summary
Registers a callback that will be invoked when the provided time is reached.
The process will be repeated for every subsequent added target time (e.g.: 0.25 => 0.50 => 0.75...).
Please consider using
OnTimeRepeat<T>(T, float, Action<T, FlexMotionLayer>) instead to prevent possible closure allocations.
Syntax
public FlexMotionLayer OnTimeRepeat(float time, Action<FlexMotionLayer> callback)
Parameters
| Name | Type | Description |
|---|---|---|
| time | float | The time to reach for the callback to be invoked. |
| callback | Action |
The method to be called when the time condition will be reached. |
Return Value
| Type | Description |
|---|---|
| FlexMotionLayer | The same instance of FlexMotionLayer, allowing chained method calls. |