Method InvokeRepeating
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
InvokeRepeating(Action, float, float)
Invokes the given action after a delay, then repeats it at the given interval.
[Version(2, 3, 0)]
public Coroutine InvokeRepeating(Action action, float time, float repeatTime)
Parameters
actionActionThe action to invoke.
timefloatThe initial delay in seconds.
repeatTimefloatThe interval in seconds between subsequent invocations.
Returns
- Coroutine
The started coroutine.
InvokeRepeating(Action, IGenerator<float>)
Invokes the given action repeatedly, with intervals generated by the given generator.
[Version(2, 3, 0)]
public Coroutine InvokeRepeating(Action action, IGenerator<float> repeatTime)
Parameters
actionActionThe action to invoke.
repeatTimeIGenerator<float>A generator that provides each repeat interval in seconds.
Returns
- Coroutine
The started coroutine.