diff --git a/Engine.Core/BehaviourCollector.cs b/Engine.Core/BehaviourCollector.cs index 512b0cc..a0661df 100644 --- a/Engine.Core/BehaviourCollector.cs +++ b/Engine.Core/BehaviourCollector.cs @@ -34,6 +34,9 @@ public class BehaviourCollector : IAssignableGameManager, IEnumerable { gameObject.BehaviourController.OnBehaviourAdded -= OnBehaviourAdded; gameObject.BehaviourController.OnBehaviourRemoved -= OnBehaviourRemoved; + + foreach (IBehaviour item in gameObject.BehaviourController) + OnBehaviourRemoved(gameObject.BehaviourController, item); } private void OnBehaviourAdded(IBehaviourController controller, IBehaviour behaviour)