diff --git a/Engine.Core/BehaviourController.cs b/Engine.Core/BehaviourController.cs index b1f174d..a5d7ae1 100644 --- a/Engine.Core/BehaviourController.cs +++ b/Engine.Core/BehaviourController.cs @@ -29,7 +29,8 @@ public class BehaviourController : BaseEntity, IBehaviourController behaviour.Assign(this); behaviour.Assign(Factory.StateEnableFactory.Instantiate(behaviour)); - behaviour.Initialize(); + if (IsInitialized) + behaviour.Initialize(); behaviour.OnPriorityChanged += OnPriorityChange; OnBehaviourAdded?.InvokeSafe(this, behaviour); return behaviour;