Death and Rebirth

This commit is contained in:
Marco 2025-02-20 16:12:53 +01:00
commit be52d0e081
11 changed files with 309 additions and 83 deletions

View file

@ -106,6 +106,12 @@ public partial class GameManager : Node2D
_player.ShieldChanged += (newShield, maxShield) => _hud.UpdateShield(newShield, maxShield);
_player.InteractableAreaEntered += (interactable) => _hud.UpdateInteractable(interactable);
_player.Death += () =>
{
// Show Game Over
_hud.ShowGameOver();
};
}
else
{