feat: GameObjects are now Connected to a Single IGameManager

This commit is contained in:
2024-01-30 12:26:17 +03:00
parent 4000e761a7
commit 1438b19e35
4 changed files with 44 additions and 1 deletions

View File

@@ -143,6 +143,8 @@ public class GameManager : IGameManager
private void Register(IGameObject gameObject)
{
gameObject.Assign(this);
gameObject.OnFinalized += OnGameObjectFinalize;
_gameObjects.Add(gameObject);