2026-01-06 08:12:57 +08:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
|
|
var current_scene = null
|
|
|
|
|
|
2026-04-26 13:33:14 +08:00
|
|
|
var Card: Resource = ResourceLoader.load("res://scenes/game/card.tscn")
|
2026-01-22 07:53:30 +08:00
|
|
|
|
2026-01-06 08:12:57 +08:00
|
|
|
func _ready():
|
2026-04-25 12:12:28 +08:00
|
|
|
var root: Window = get_tree().root
|
|
|
|
|
current_scene = root.get_child(root.get_child_count() - 1)
|
2026-01-06 08:12:57 +08:00
|
|
|
|
2026-04-25 21:31:39 +08:00
|
|
|
|
2026-01-06 08:12:57 +08:00
|
|
|
func goto_scene(path: String):
|
2026-04-25 12:12:28 +08:00
|
|
|
get_tree().change_scene_to_file("res://scenes/%s.tscn" % [path])
|
|
|
|
|
var root: Window = get_tree().root
|
|
|
|
|
current_scene = root.get_child(root.get_child_count() - 1)
|