Table of Contents

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

ActionBlock

Resume()

Resumes a paused coroutine.

ActionBlock Resume()

Returns

ActionBlock

Start()

Starts or restarts the coroutine.

ActionBlock Start()

Returns

ActionBlock

Stop()

Stops the coroutine and resets its state.

ActionBlock Stop()

Returns

ActionBlock