hide loading when start game not with main scene
This commit is contained in:
@@ -9,6 +9,8 @@ func _ready():
|
|||||||
print("[global#_ready] get root scene")
|
print("[global#_ready] get root scene")
|
||||||
var root = get_tree().get_root()
|
var root = get_tree().get_root()
|
||||||
current_scene = root.get_child(root.get_child_count() - 1)
|
current_scene = root.get_child(root.get_child_count() - 1)
|
||||||
|
if current_scene.name != "Main":
|
||||||
|
get_node("/root/Loading").hide()
|
||||||
|
|
||||||
func goto_scene(path):
|
func goto_scene(path):
|
||||||
print("[global#goto_scene]")
|
print("[global#goto_scene]")
|
||||||
|
|||||||
Reference in New Issue
Block a user