public static Coroutine WithDelay( float seconds, Action action, MonoBehaviour behaviour = null, TimeScale timeScale = TimeScale.Unity ) { behaviour = behaviour ?? ASync.behaviour; var enumerator = WithDelayEnumerator(seconds, action, timeScale); return(new Coroutine(behaviour, enumerator)); }
public static Coroutine WithDelay( Duration duration, Action action, ITimeContext timeContext, MonoBehaviour behaviour = null ) { behaviour = behaviour ? behaviour : ASync.behaviour; var enumerator = WithDelayEnumerator(duration, action, timeContext); return(new UnityCoroutine(behaviour, enumerator)); }