otherworldly_simulation/scene/class/game_data.gd
2024-10-26 22:17:29 +08:00

15 lines
306 B
GDScript

class_name GameData
var data:Dictionary={
}
func _init(use_character_id:String) -> void:
var cdata=Database.get_character_data(use_character_id)
if cdata!=null:
data["character_data"]=cdata
else:
push_error("未找到角色数据")
pass
func get_character_data():
return data["character_data"]