Debug menu fix

This commit is contained in:
Marco 2025-02-19 15:45:21 +01:00
commit fe01ac4ef1
9 changed files with 242 additions and 33 deletions

View file

@ -58,6 +58,11 @@ public partial class GameManager : Node2D
SpawnBulletsContainer();
if (_hud != null)
{
this.GameStateChange += _hud.OnGameStateChanged;
}
if (_inventoryManager != null && _hud != null)
{
_inventoryManager.ItemAdded += (item, currentAmount) => _hud.AddInventoryItem(item, currentAmount);