/// <summary> /// Executes the action prior to executing the .Then() action. /// </summary> public Promise Yield(YieldInstruction yieldInstruction) { if (yieldInstruction == null) { throw new ArgumentNullException("yieldInstruction"); } return(NewPromise.ThenYield(yieldInstruction)); }
/// <summary> /// Executes the action prior to executing the .Then() action. /// </summary> public Promise Yield(CustomYieldInstruction customYieldInstruction) { if (customYieldInstruction == null) { throw new ArgumentNullException("customYieldInstruction"); } return(NewPromise.ThenYield(customYieldInstruction)); }
/// <summary> /// Waits for a number of seconds prior to executing the .Then() action. /// </summary> public Promise WaitFor(float seconds) { return(NewPromise.ThenYield(new WaitForSeconds(seconds))); }