All checks were successful
Coding Quality / Build and analyze (pull_request) Successful in 2m10s
15 lines
241 B
GDScript
15 lines
241 B
GDScript
extends Node
|
|
|
|
class_name QuitGame
|
|
|
|
@onready var button: Button = get_parent() as Button
|
|
|
|
|
|
func _ready() -> void:
|
|
button.pressed.connect(_on_button_pressed)
|
|
button.name = button.text
|
|
|
|
|
|
func _on_button_pressed() -> void:
|
|
get_tree().quit(0)
|