KernelAPI reference
Class CoroutineHandle
Namespace: MicroEngine.Scenes
Assembly: MicroEngine.dll
Guide: Scenes
Controls a coroutine started with Start.
public sealed class CoroutineHandleInheritance
Constructors
CoroutineHandle(Action, Func<bool>)
Controls a coroutine started with Start.
public CoroutineHandle(Action cancel, Func<bool> finished)Parameters
cancel Action
Properties
IsFinished
Whether the coroutine ran to its end or was cancelled.
public bool IsFinished { get; }Property Value
Methods
Cancel()
Stops the coroutine; it does not run another step. Safe to call more than once.
public void Cancel()