godot_rl_Ships / health_bar.gd
jtatman's picture
Upload folder using huggingface_hub
3a3791d verified
raw
history blame contribute delete
179 Bytes
extends Sprite3D
@onready var health_bar_2d = $SubViewport/HealthBar2D
func _ready():
update_health(3.0)
func update_health(value):
health_bar_2d.update_health(value, 3.0)