mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-07 17:05:54 +00:00
Ability to switch weapons through the menu
This commit is contained in:
parent
12b8d4a70f
commit
ff6d46ebcd
11 changed files with 61 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue