Wait! – Easy Coroutines
Wait! is a coroutine utility that lets you use declarative syntax to write coroutines Please note: More Effective Coroutines is a (free) dependency, you will need to download that as well (see Desc.)
by Iterant Games
★★ star rating
Price History +
Wait! is a wrapper that provides easy declarative syntax for the More Effective Coroutines package which lets you run coroutines anywhere in your code, not just in MonoBehaviours.
It can be used for simple timings like waiting until the next frame or for any number of seconds as well as more complex timings such as waiting for 3 seconds after an object is in position. It's very easy to compose multiple timings how ever you choose.
Features
- Easily wait for
- Frames
- Seconds
- SecondsWhilePaused (ignores Time.timeScale)
- Until any condition you specify is satisfied
- Any combination of the above!
- Repeat your wait any number of times or indefinitely.
- Chain waits together. (eg. wait until 5 seconds after a condition is complete)
- Group waits to stop, pause, or resume them all together.
- Specify an action that runs when ever you start the wait.
- Run coroutines in any script, not just MonoBehaviors (thanks to More Effective Coroutines)
Documentation