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

@@ -117,6 +117,7 @@ tile_set = ExtResource("10_ei558")
tile_set = ExtResource("11_w7c5i")
[node name="Killzone" parent="." instance=ExtResource("13_tvdre")]
process_mode = 4
position = Vector2(215, 324)
[node name="Child" parent="." instance=ExtResource("15_vqevu")]
@@ -137,5 +138,8 @@ Text = "LEVEL_1_TOOLTIP_2"
position = Vector2(-59, -247)
Text = "LEVEL_1_TOOLTIP_3"
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="OnPlayerDeath"]
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="OnPlayerDeath"]
[editable path="Brick Player"]
[editable path="UI Layer"]