20 lines
253 B
GDScript
20 lines
253 B
GDScript
extends Control
|
|
|
|
export(NodePath) var startPath
|
|
|
|
var _start_button
|
|
|
|
signal body_build()
|
|
|
|
func _ready():
|
|
_start_button = get_node(startPath) as Button
|
|
|
|
|
|
func _on_Start_pressed():
|
|
emit_signal("body_build")
|
|
|
|
|
|
func _on_Exit_pressed():
|
|
get_tree().quit()
|
|
|