15 lines
306 B
GDScript
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"]
|