MonoBehaviourExtensions.Wait
Extension Method in MonoBehaviourExtensions
Declaration
public static Coroutine Wait(this MonoBehaviour behavior, float delay, Action action)
Description
Executes an action after a delay.
Parameters
behavior | The behavior to execute the action on. |
delay | The delay in seconds. |
action | The action to execute. |
Returns
Coroutine | The coroutine. |