public static Invoke ( double delay, System.Action action ) : |
||
delay | double | The delay (in seconds) before invoking the action. |
action | System.Action | The action to invoke. |
return |
public static DelayedAction Invoke(double delay, Action action)
{
DelayedAction delayedAction = new DelayedAction(delay, action);
delayedAction.Start();
return delayedAction;
}
#endregion