bodypartfighter/UI/MainMenu.gd

21 lines
315 B
GDScript3
Raw Normal View History

2020-02-02 14:01:57 +01:00
extends Spatial
2020-02-02 11:03:21 +01:00
export(NodePath) var startPath
var _start_button
2020-02-02 14:01:57 +01:00
onready var viewport = get_node("ViewportContainer/Viewport")
2020-02-02 11:03:21 +01:00
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()