feat: 修复bug

This commit is contained in:
2026-04-01 13:29:48 +08:00
parent 40b2476e63
commit 2fbc3c80cf
4 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -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)