Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.65 KB

Routine.md

File metadata and controls

20 lines (17 loc) · 1.65 KB

Routine Class

Advanced coroutine handler.

public sealed class Routine : KeepCoding.Internal.RoutineBase

Inheritance System.Object 🡒 RoutineBase 🡒 Routine

Constructors
Routine(Func<IEnumerator>, MonoBehaviour) Creates a list of coroutines so that you can start, restart, or stop any coroutine running inside this class.
Methods
Restart(bool) Stops and restarts the first coroutine that was run.
RestartAll(bool) Restarts all coroutines currently running.
Start(bool, bool) Starts the coroutine. Unless specified by allowMultiple, it will not be called if this class is in the middle of running the coroutine.
StartOrRestart(bool, bool) Starts a coroutine if no coroutines are running, otherwise restarts.