forked from xiangwang25/whale-town-front-v2
feat: add nearby social interactions
This commit is contained in:
@@ -38,6 +38,7 @@ var current_scene_name: String = "" # 当前场景名称
|
||||
var is_changing_scene: bool = false # 是否正在切换场景
|
||||
var _next_scene_position: Variant = null # 下一个场景的初始位置 (Vector2 or null)
|
||||
var _next_spawn_name: String = "" # 下一个场景的出生点名称 (String)
|
||||
var _next_destination_id: String = "" # 快速传送目标,用于发现登记
|
||||
|
||||
# 场景路径映射表
|
||||
# 将场景名称映射到实际的文件路径
|
||||
@@ -194,6 +195,14 @@ func get_next_spawn_name() -> String:
|
||||
_next_spawn_name = ""
|
||||
return spawn_name
|
||||
|
||||
func set_next_destination_id(destination_id: String) -> void:
|
||||
_next_destination_id = destination_id.strip_edges()
|
||||
|
||||
func get_next_destination_id() -> String:
|
||||
var destination_id := _next_destination_id
|
||||
_next_destination_id = ""
|
||||
return destination_id
|
||||
|
||||
# ============ 场景注册方法 ============
|
||||
|
||||
# 注册新场景
|
||||
|
||||
Reference in New Issue
Block a user