21 lines
315 B
GDScript
21 lines
315 B
GDScript
extends Spatial
|
|
|
|
export(NodePath) var startPath
|
|
|
|
var _start_button
|
|
onready var viewport = get_node("ViewportContainer/Viewport")
|
|
|
|
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()
|
|
|