fix: BehaviourController Manual AddBehaviour Assign Exceptions
This commit is contained in:
parent
40d1ce7c68
commit
2bcd1c5a89
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue