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
behavior | The behavior to execute the action on. |
action | The action to execute. |
interval | The interval to repeat the action, in seconds. |
Returns
Coroutine | The coroutine. |