broken_seals_roguelike/game/ui/game_over_window/QuitButton.gd

8 lines
160 B
GDScript3
Raw Normal View History

2020-07-16 16:19:33 +02:00
extends Button
func _ready():
connect("pressed", self, "on_click")
func on_click() -> void:
get_node("/root/Main").switch_scene(Main.StartSceneTypes.MENU)