fix: 优化代码

This commit is contained in:
2026-01-22 07:53:30 +08:00
parent 4afa37c87d
commit 05a566f42b
6 changed files with 25 additions and 3 deletions
+2
View File
@@ -2,6 +2,8 @@ extends Node
var current_scene = null
var Card = ResourceLoader.load("res://prefabs/game/card.tscn")
func _ready():
var root = get_tree().root
current_scene = root.get_child(root.get_child_count() - 1)