diff --git a/src/CoroutineManager.cs b/src/CoroutineManager.cs index 4b04d49..c6fabb4 100644 --- a/src/CoroutineManager.cs +++ b/src/CoroutineManager.cs @@ -25,6 +25,7 @@ public void ActivateCoroutine(CoroutineBase coroutine) if (isIteratingActiveCoroutines) { coroutinesToActivate.Add(coroutine); + coroutinesToDeactivate.Remove(coroutine); } else { @@ -37,6 +38,7 @@ public void DeactivateCoroutine(CoroutineBase coroutine) if (isIteratingActiveCoroutines) { coroutinesToDeactivate.Add(coroutine); + coroutinesToActivate.Remove(coroutine); } else {