Refactor GameManager and PlayerDeathComponent for improved state management and logging; update scene connections for player death handling

This commit is contained in:
2025-08-26 18:00:27 +02:00
parent ad53ef9715
commit cea3956fbb
8 changed files with 22 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ public partial class PlayerDeathComponent : Node2D
}
_gameManager.RemoveLives(1);
GD.Print("Player death, lives left: " + _gameManager.GetLives());
_gameManager.ResetCurrentSessionState();
}
}