13 lines
356 B
GDScript
13 lines
356 B
GDScript
extends Node
|
|
|
|
@onready var back_button: Button = $BackButtonContainer/BackButton
|
|
|
|
func _ready() -> void:
|
|
if not back_button.pressed.is_connected(_on_back_button_pressed):
|
|
back_button.pressed.connect(_on_back_button_pressed)
|
|
|
|
func _on_back_button_pressed() -> void:
|
|
AudioManager.play_ui_click()
|
|
GameManager.save_game()
|
|
GameManager.exit_to_main_menu()
|