From 341b10cadcfc9cb9f7dbce98a9579ac5bc3323ae Mon Sep 17 00:00:00 2001 From: Inspiaaa Date: Thu, 5 Sep 2024 15:39:49 +0200 Subject: [PATCH] Add option to set proc/run mode in base This was missing from the previous commits --- src/CoroutineBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CoroutineBase.cs b/src/CoroutineBase.cs index 884d43b..bf88173 100644 --- a/src/CoroutineBase.cs +++ b/src/CoroutineBase.cs @@ -45,6 +45,12 @@ public void StartCoroutine(CoroutineBase coroutine) coroutine.Init(); } + public CoroutineBase(CoProcessMode processMode, CoRunMode runMode) + { + this.ProcessMode = processMode; + this.RunMode = runMode; + } + /// /// Initializes the coroutine once it has been added to the active coroutine hierarchy. ///