Pause Menu and navigation

This commit is contained in:
2025-07-28 14:29:51 +02:00
parent 6b6b183da6
commit feed8d0786
7 changed files with 211 additions and 45 deletions

View File

@ -123,7 +123,7 @@ func enemy_hurt(amount) -> void:
current_health -= amount
if current_health <= 0:
get_parent().get_parent().get_parent().get_node("SidePanel").Update_Coins(value)
get_parent().get_parent().get_parent().get_node("CanvasLayer/SidePanel").Update_Coins(value)
var coin = COIN.instantiate()
coin.position = self.global_position
get_parent().get_parent().add_child(coin)