feat: 完成设置部分和游戏内房主房客身份及IP地址的识别
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
extends Node
|
||||
|
||||
var current_scene = null
|
||||
|
||||
func _ready():
|
||||
var root = get_tree().root
|
||||
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])
|
||||
Reference in New Issue
Block a user