fix: BehaviourController assigning a new state enable to all newly added behaviours fixed

This commit is contained in:
Syntriax 2025-04-26 14:10:40 +03:00
parent c39ee44442
commit 5b2c13f8bf

View File

@ -27,7 +27,6 @@ public class BehaviourController : BaseEntity, IBehaviourController
InsertBehaviourByPriority(behaviour);
behaviour.Assign(this);
behaviour.Assign(Factory.StateEnableFactory.Instantiate(behaviour));
if (IsInitialized)
behaviour.Initialize();