pirate-survivors/Player/game_over_screen.gd
2026-01-17 18:36:34 +01:00

14 lines
330 B
GDScript

extends CanvasLayer
@onready var RestartButton = $ColorRect/VBoxContainer/RestartButton
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
RestartButton.pressed.connect(_on_restart_pressed)
hide()
func _on_restart_pressed():
get_tree().paused = false
get_tree().reload_current_scene()