Ability to switch weapons through the menu

This commit is contained in:
Marco 2025-02-25 18:42:11 +01:00
commit ff6d46ebcd
11 changed files with 61 additions and 4 deletions

View file

@ -133,7 +133,7 @@ public partial class GameManager : Node2D
_player.ShieldChanged += (newShield, maxShield) => _hud.UpdateShield(newShield, maxShield);
_player.InteractableAreaEntered += (interactable) => _hud.UpdateInteractable(interactable);
_player.Death += () =>
{
// Show Game Over
@ -155,6 +155,8 @@ public partial class GameManager : Node2D
SpawnPlayerWeapon(item);
}
};
_inventoryManager.WeaponEquip += _player.EquipWeapon;
}
SpawnWeapons();