From f016e576ed9a35259787bbe3345b59e4f3b7361e Mon Sep 17 00:00:00 2001 From: Willow Behar <2364126-TechRunner@users.noreply.gitlab.com> Date: Tue, 7 May 2024 17:16:02 -0500 Subject: [PATCH] Added startGame signal and emit a signal on pressing the start button in the main menu --- Assets/scripts/Main Menu.gd | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Assets/scripts/Main Menu.gd b/Assets/scripts/Main Menu.gd index 9a777bb..87574cd 100644 --- a/Assets/scripts/Main Menu.gd +++ b/Assets/scripts/Main Menu.gd @@ -1,22 +1,17 @@ extends Control +signal startGame # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. - -# Called every frame. 'delta' is the elapsed time since the previous frame. -func _process(delta): - pass - - func _on_exit_pressed(): get_tree().quit() func _on_start_pressed(): - pass # Replace with function body. + emit_signal("startGame") func _on_settings_pressed():