Summary
Registers a callback that will be invoked once when the provided time is reached.
Please consider using
OnTime<T>(T, float, Action<T, FlexMotionLayer>)
instead to prevent possible closure allocations.
Syntax
public FlexMotionLayer OnTime(float time, Action<FlexMotionLayer> callback, bool isRepeat = false, bool useLoopRepeat = false)
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. |
isRepeat | bool | |
useLoopRepeat | bool |
Return Value
Type | Description |
---|---|
FlexMotionLayer | The same instance of FlexMotionLayer , allowing chained method calls. |