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