Interface ICoroutineBlock
- Namespace
- LunyScript.Blocks /
- Assembly
- LunyScript.dll
Represents a coroutine block that runs perpetually (indefinitely). Coroutines can be started, stopped, paused, resumed.
public interface ICoroutineBlock : IScriptBlock
Expand Details ...
Methods
Pause()
Pauses the coroutine, preserving current state.
ActionBlock Pause()
Returns
Resume()
Resumes a paused coroutine.
ActionBlock Resume()
Returns
Start()
Starts or restarts the coroutine.
ActionBlock Start()
Returns
Stop()
Stops the coroutine and resets its state.
ActionBlock Stop()