14 lines
330 B
GDScript
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()
|