Class CoroutineRunner
Manages coroutine running operations
Inherited Members
Namespace: LobsterFramework
Assembly: LobsterFramework.dll
Syntax
public class CoroutineRunner
Properties
| Improve this Doc View SourceSize
The number of Coroutines currently active
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceAddCoroutine(IEnumerable<CoroutineOption>)
Add a coroutine to the running queue
Declaration
public Coroutine AddCoroutine(IEnumerable<CoroutineOption> coroutine)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CoroutineOption> | coroutine | The coroutine to be runned |
Returns
Type | Description |
---|---|
Coroutine | The Coroutine Object that represents the state of coroutine |
Run()
Run through coroutines added to the running queue in a FIFO order. Child coroutines can be added and runned dynamically.
Declaration
public void Run()
StopAllCoroutines()
Declaration
public void StopAllCoroutines()