Global state singleton

This commit is contained in:
MaddoScientisto 2025-02-20 21:26:51 +01:00
commit 52d5adebcb
7 changed files with 73 additions and 5 deletions

View file

@ -168,7 +168,9 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
_rightStickInput = Vector2.Zero;
_isStrafing = false;
_gameManager = this.GetGameManager();
_gameManager = GameManager.Instance;
//_gameManager = this.GetGameManager();
_inventoryManager = this.GetInventoryManager();
_gameManager.GameStateChange += GameManagerOnGameStateChange;