Method InvokeRepeating
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
InvokeRepeating(MonoBehaviour, Action, float, float)
Invokes the given action after the given amount of time, and repeats the action after every repeatTime seconds.
public static Coroutine InvokeRepeating(this MonoBehaviour monoBehaviour, Action action, float time, float repeatTime)
Parameters
monoBehaviour
MonoBehaviouraction
Actiontime
floatrepeatTime
float
Returns
InvokeRepeating(MonoBehaviour, Action, IGenerator<float>)
Invokes the given action after the given amount of time, and repeats the action after every repeatTime seconds.
public static Coroutine InvokeRepeating(this MonoBehaviour monoBehaviour, Action action, IGenerator<float> repeatTime)
Parameters
monoBehaviour
MonoBehaviouraction
ActionrepeatTime
IGenerator<float>