Class Coroutines
Inherited Members
Namespace: RedLoader
Assembly: RedLoader.dll
Syntax
public class Coroutines
Constructors
Coroutines()
Declaration
public Coroutines()
Methods
Start(IEnumerator)
Start a new coroutine.
Coroutines are called at the end of the game Update loops.
Declaration
public static object Start(IEnumerator routine)
Parameters
Type | Name | Description |
---|---|---|
IEnumerator | routine | The target routine |
Returns
Type | Description |
---|---|
object | An object that can be passed to Stop to stop this coroutine |
Stop(object)
Stop a currently running coroutine
Declaration
public static void Stop(object coroutineToken)
Parameters
Type | Name | Description |
---|---|---|
object | coroutineToken | The coroutine to stop |