fix: 优化代码
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user