diff --git a/Engine.Core/BehaviourController.cs b/Engine.Core/BehaviourController.cs index efda6d7..cddf92d 100644 --- a/Engine.Core/BehaviourController.cs +++ b/Engine.Core/BehaviourController.cs @@ -32,6 +32,9 @@ public class BehaviourController : IBehaviourController { InsertBehaviourByPriority(behaviour); + behaviour.Assign(this); + behaviour.Assign(GameObject.StateEnable); + behaviour.Initialize(); behaviour.OnPriorityChanged += OnPriorityChange; OnBehaviourAdded?.Invoke(this, behaviour);