Class Coroutine
- Namespace
- AO
- Assembly
- CoreAssembly.dll
Coroutines are a way to run code in a way that mimics parallelism. Coroutines run on the main thread and are ticked every frame.
public class Coroutine
- Inheritance
-
Coroutine
- Inherited Members
- Extension Methods
Methods
InterpTimer(ref float, float)
public static bool InterpTimer(ref float timer, float seconds)
Parameters
Returns
Start(Entity, IEnumerator)
Start a coroutine.
public static Coroutine Start(Entity owner, IEnumerator enumerator)
Parameters
owner
EntityThe entity that owns the coroutine.
enumerator
IEnumeratorThe enumerator to run.
Returns
Stop()
public void Stop()
Timer(ref float, float)
public static bool Timer(ref float timer, float seconds)