Table of Contents

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

action Action

The action to invoke.

time float

The initial delay in seconds.

repeatTime float

The 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

action Action

The action to invoke.

repeatTime IGenerator<float>

A generator that provides each repeat interval in seconds.

Returns

Coroutine

The started coroutine.