Pause Menu and navigation
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user