14 lines
253 B
GDScript
14 lines
253 B
GDScript
extends Control
|
|
|
|
signal new_game
|
|
signal quit_game
|
|
|
|
func _ready():
|
|
$"Container/New Game".pressed.connect(_emit_new)
|
|
$Container/Quit.pressed.connect(_emit_quit)
|
|
|
|
func _emit_new():
|
|
emit_signal("new_game")
|
|
|
|
func _emit_quit():
|
|
emit_signal("quit_game")
|