Adding back to start menu from pause menu
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
extends CanvasLayer
|
||||
|
||||
const START_SCREEN_SCENE := "res://scenes/UI/start_screen.tscn"
|
||||
|
||||
@onready var pause_menu = $Control
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -26,6 +28,10 @@ func _on_quit_button_pressed():
|
||||
func _on_continue_button_pressed():
|
||||
resume_game()
|
||||
|
||||
func _on_main_menu_button_pressed():
|
||||
resume_game()
|
||||
get_tree().change_scene_to_file(START_SCREEN_SCENE)
|
||||
|
||||
func _register_focus_sounds() -> void:
|
||||
if pause_menu == null:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user