MonoBehaviourExtensions.Repeat

Extension Method in MonoBehaviourExtensions

Declaration

public static Coroutine Repeat(this MonoBehaviour behavior, Action action, float interval)

Description

Repeats an action at a set interval.

Parameters

behaviorThe behavior to execute the action on.
actionThe action to execute.
intervalThe interval to repeat the action, in seconds.

Returns

CoroutineThe coroutine.