challenge-editor/scene/attribute.gd
2024-09-11 17:44:37 +08:00

9 lines
155 B
GDScript

extends TextureRect
var data:Dictionary={
"name":"生命",
"value":100
}
func _ready() -> void:
%name.text=data["name"]
%value.text=str(data["value"])