fix: active checks on behaviour base and universe object not working properly

This commit is contained in:
2025-08-04 22:01:16 +03:00
parent 11719440dc
commit e00319d7ff
2 changed files with 6 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ public class UniverseObject : BaseEntity, IUniverseObject
base.OnAssign(stateEnable);
stateEnable.OnEnabledChanged.AddListener(OnStateEnabledChanged);
UpdateActive();
}
private void OnParentActiveChanged(IActive sender, IActive.ActiveChangedArguments args) => UpdateActive();