void Start() { queue.Start(); queue.AddWait(wait); TimeElapsed = 0; UpdateCount = 0; }
void Start() { queue = new CoroutineQueue(); queue.Start(); queue.AddWait(_wait); StartCoroutine(AssertWaitUntilDone()); }
/// <summary> /// Queue in a pause before incoming rotation. /// </summary> /// <param name="seconds">How many seconds to wait.</param> /// <returns>Returns this for call chaining.</returns> public CanBeMoved PauseRotation(float seconds) { _rotationQueue.AddWait(seconds); return(this); }
/// <summary> /// Queue in a pause before incoming movement. /// </summary> /// <param name="seconds">How many seconds to wait.</param> /// <returns>Returns this for call chaining.</returns> public CanBeMoved PauseMovement(float seconds) { _movementQueue.AddWait(seconds); return(this); }