You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
718 B
32 lines
718 B
extends CanvasLayer
|
|
var mainScene
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
#$CenterContainer/VBoxContainer/Button05.button_up.connect( _on_quit )
|
|
#$CenterContainer/VBoxContainer/Button01.button_up.connect( _on_play )
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func _on_quit():
|
|
get_tree().quit()
|
|
|
|
func _on_play():
|
|
#$".".hide()
|
|
#var w = get_node("/root/World");
|
|
#
|
|
#if !w:
|
|
get_tree().change_scene_to_file( "res://scenes/Start.tscn" )
|
|
#else:
|
|
#w.player_spawn()
|
|
#w.show()
|
|
|
|
|
|
|
|
func _on_label_2_button_up():
|
|
get_tree().change_scene_to_file("res://scenes/UI/Start.tscn")
|