diff --git a/addons/HCoroutines/src/CoroutineBase.cs b/addons/HCoroutines/src/CoroutineBase.cs index 455d421..c2b7875 100644 --- a/addons/HCoroutines/src/CoroutineBase.cs +++ b/addons/HCoroutines/src/CoroutineBase.cs @@ -47,6 +47,11 @@ public class CoroutineBase public void StartCoroutine(CoroutineBase coroutine) { + if (!IsAlive) + { + throw new InvalidOperationException("Cannot start child coroutine on dead parent coroutine."); + } + coroutine.Manager = Manager; coroutine.Parent = this;