Interaction manager and hud

This commit is contained in:
Marco 2025-06-12 18:03:55 +02:00
commit 5271b84923
20 changed files with 539 additions and 29 deletions

View file

@ -79,7 +79,10 @@ public partial class Hud : CanvasLayer
//_healthLabel = GetNode<Label>("HealthLabel");
_gameOverPanel.Hide();
InventoryManager.Instance.ItemAdded += OnItemAdded;
if (InventoryManager.Instance is not null)
{
InventoryManager.Instance.ItemAdded += OnItemAdded;
}
}
private void OnItemAdded(LootItem item, int currentamount)