feat: 修复bug
This commit is contained in:
@@ -9,5 +9,6 @@ func _ready():
|
||||
current_scene = root.get_child(root.get_child_count() - 1)
|
||||
|
||||
func goto_scene(path: String):
|
||||
current_scene = path
|
||||
get_tree().change_scene_to_file("res://scenes/%s.tscn" % [path])
|
||||
get_tree().change_scene_to_file("res://scenes/%s.tscn" % [path])
|
||||
var root = get_tree().root
|
||||
current_scene = root.get_child(root.get_child_count() - 1)
|
||||
Reference in New Issue
Block a user