Added startGame signal and emit a signal on pressing the start button in the main menu
This commit is contained in:
@ -1,22 +1,17 @@
|
|||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
|
signal startGame
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
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():
|
func _on_exit_pressed():
|
||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
|
|
||||||
|
|
||||||
func _on_start_pressed():
|
func _on_start_pressed():
|
||||||
pass # Replace with function body.
|
emit_signal("startGame")
|
||||||
|
|
||||||
|
|
||||||
func _on_settings_pressed():
|
func _on_settings_pressed():
|
||||||
|
|||||||
Reference in New Issue
Block a user