This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Boups/Scenes/Scripts/GameOver.gd
2023-02-26 20:50:11 +01:00

10 lines
215 B
GDScript
Executable file

extends Node2D
onready var hover_sound = $"Hover"
func _on_RestartButton_pressed() -> void:
get_tree().change_scene("res://Scenes/Menu.tscn")
func _on_RestartButton_mouse_entered() -> void:
hover_sound.play()