broken_seals_roguelike/game/ui/game_over_window/QuitButton.gd

8 lines
160 B
GDScript

extends Button
func _ready():
connect("pressed", self, "on_click")
func on_click() -> void:
get_node("/root/Main").switch_scene(Main.StartSceneTypes.MENU)