mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 07:33:47 +00:00
Interaction manager and hud
This commit is contained in:
parent
b1afc7af1c
commit
5271b84923
20 changed files with 539 additions and 29 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue