MonoBehaviourExtensions.Wait<T>
Extension Method in MonoBehaviourExtensions
Declaration
public static Coroutine Wait<T>(this MonoBehaviour behavior, float delay, Action<T> action, T obj)
Description
Executes an action after a delay.
Type Parameters
T | The type of the object to pass to the action. |
Parameters
behavior | The behavior to execute the action on. |
delay | The delay in seconds. |
action | The action to execute. |
obj | The object to pass to the action. |
Returns
Coroutine | The coroutine. |