hide loading when start game not with main scene

This commit is contained in:
VAILLANT Jeremy
2021-05-10 14:57:01 +02:00
parent 761025cfd1
commit 63999f408a
+2
View File
@@ -9,6 +9,8 @@ func _ready():
print("[global#_ready] get root scene")
var root = get_tree().get_root()
current_scene = root.get_child(root.get_child_count() - 1)
if current_scene.name != "Main":
get_node("/root/Loading").hide()
func goto_scene(path):
print("[global#goto_scene]")