fix: IHierarchyObject.SetParent not entering the object into the IGameManager hierarchy fixed

This commit is contained in:
2025-04-06 18:06:33 +03:00
parent 6f425776cc
commit 1ee07b41f8
2 changed files with 6 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ public class GameManager : BaseEntity, IGameManager
Remove(child);
_hierarchyObjects.Remove(hierarchyObject);
hierarchyObject.SetParent(null);
if (!hierarchyObject.ExitHierarchy())
throw new Exception($"{hierarchyObject.Name} can't exit the hierarchy");