mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 08:05:53 +00:00
Interaction manager and hud
This commit is contained in:
parent
b1afc7af1c
commit
5271b84923
20 changed files with 539 additions and 29 deletions
|
|
@ -24,11 +24,15 @@ public partial class StatusMenu : PanelContainer
|
|||
|
||||
public override void _ExitTree()
|
||||
{
|
||||
InventoryManager.Instance.ItemAdded -= InstanceOnItemAdded;
|
||||
if (InventoryManager.Instance is not null)
|
||||
{
|
||||
InventoryManager.Instance.ItemAdded -= InstanceOnItemAdded;
|
||||
}
|
||||
}
|
||||
|
||||
private void InitializeDeferred()
|
||||
{
|
||||
if (InventoryManager.Instance is null) return;
|
||||
var healthExpansions = InventoryManager.Instance.GetItemCount(HealthExpansionName);
|
||||
var shieldExpansions = InventoryManager.Instance.GetItemCount(ShieldExpansionName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue