Class UnboundCoroutine
Used for starting/stopping coroutines that aren't bound to a specific GameObject
Namespace: WeaverCore.Utilities
Assembly: WeaverCore.dll
Syntax
public class UnboundCoroutine
Constructors
| Edit this page View SourceUnboundCoroutine()
Declaration
protected UnboundCoroutine()
Properties
| Edit this page View SourceDT
Used for accessing Time.deltaTime. This also works when not in play mode
Declaration
public static float DT { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceStart(IEnumerator)
Starts a coroutine that isn't bound to a specific GameObject
Declaration
public static UnboundCoroutine Start(IEnumerator routine)
Parameters
Type | Name | Description |
---|---|---|
IEnumerator | routine | The coroutine function to start |
Returns
Type | Description |
---|---|
UnboundCoroutine | Returns an unbound coroutine object. Use Stop(UnboundCoroutine) to stop the coroutine |
Stop()
Stops this unbound coroutine
Declaration
public void Stop()
Stop(UnboundCoroutine)
Stops an unbound coroutine
Declaration
public static void Stop(UnboundCoroutine coroutine)
Parameters
Type | Name | Description |
---|---|---|
UnboundCoroutine | coroutine | The coroutine to stop |