Kept goiong, but not quite happy.
This commit is contained in:
+5
-3
@@ -1,5 +1,5 @@
|
||||
extends Control
|
||||
|
||||
extends CanvasLayer
|
||||
var start = preload("res://scenes/UI/Start.tscn").instantiate()
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
@@ -16,5 +16,7 @@ func _on_quit():
|
||||
get_tree().quit()
|
||||
|
||||
func load_start_menu():
|
||||
get_tree().change_scene_to_file("res://scenes/UI/Start.tscn")
|
||||
$".".hide()
|
||||
get_tree().get_root().add_child( start )
|
||||
#get_tree().change_scene_to_file("res://scenes/UI/Start.tscn")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user