fix: changed name of quit component
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
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)
|
||||
@@ -1 +0,0 @@
|
||||
uid://lh1hhx4q8nlu
|
||||
Reference in New Issue
Block a user