Coroutiner

class in Doozy.Engine / Inherits from MonoBehaviour

Description

The Coroutiner is a special class used to run Coroutines on. When using any of its public static methods, it will instantiate itself and run any number of coroutines.

Static Properties

  • public static Coroutiner Instance – Returns a reference to the Coroutiner in the Scene. If one does not exist, it gets created

Public Methods

  • public Coroutine StartLocalCoroutine(IEnumerator enumerator) – Starts a Coroutine and returns a reference to it

  • public void StopLocalCoroutine(Coroutine coroutine) – Stops the first Coroutine named methodName, or the Coroutine stored in routine running on this behaviour

  • public void StopLocalCoroutine(IEnumerator enumerator) – Stops the first Coroutine named methodName, or the Coroutine stored in routine running on this behaviour

  • public void StopAllLocalCoroutines() – Stops all ~Coroutines~ running on this behaviour

Static Methods

  • public static Coroutine Start(IEnumerator enumerator) – Starts a Coroutine and returns a reference to it

  • public static void Stop(IEnumerator enumerator) – Stops the first Coroutine named methodName, or the Coroutine stored in routine running on this behaviour

  • public static void Stop(Coroutine coroutine) – Stops the first Coroutine named methodName, or the Coroutine stored in routine running on this behaviour

  • public static void StopAll() – Stops all ~Coroutines~ running on this behaviour