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
Methods
Pause()
Pauses the coroutine, preserving current state.
ScriptActionBlock Pause()
Returns
Resume()
Resumes a paused coroutine.
ScriptActionBlock Resume()
Returns
Start()
Starts or restarts the coroutine.
ScriptActionBlock Start()
Returns
Stop()
Stops the coroutine and resets its state.
ScriptActionBlock Stop()