Summary
Registers a callback that will be invoked when the provided time is reached.
The process will be repeated for every subsequent loop (e.g.: 0.25 => 1.25 => 2.25...).
Syntax
public FlexMotionLayer OnTimeLoop<T>(T caller, float time, Action<T, FlexMotionLayer> callback)
where T : class
Type Parameters
Parameters
Name |
Type |
Description |
caller |
T |
The caller of this method which will be part of the callback alongside the layer. |
time |
float |
The time to reach for the callback to be invoked. |
callback |
Action<T, FlexMotionLayer> |
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. |