Coroutine Extensions
Start Coroutine
This line initiates a coroutine that executes the MyFunction function after a specified delay. By setting the delay parameter to 1 second, the function is scheduled to run after a brief pause.
Start Polling Coroutine (Condition-based Coroutine)
This line initiates a polling coroutine that checks the condition boolean every 0.1 seconds as default. The delay time can be adjusted as required. When the condition turns true, the coroutine executes the MyFunction function and turns the condition false.
Start Sequence
This line initiates a coroutine sequence, adding functions to execute in a specific order with delays between each. Here, MyFunction1 is called after a 1-second delay, followed by MyFunction2 with a 1-second delay, and finally MyFunction3 with another 1-second delay. Once all functions are appended, the sequence begins by calling Play().
Last updated