9 lines
155 B
GDScript
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"])
|