TowerDefense/UI/health_bar_2d.gd

10 lines
174 B
GDScript3
Raw Normal View History

2025-04-02 18:02:13 +02:00
extends ProgressBar
func setup_bar(amount : int, max_amount : int) -> void:
max_value = max_amount
value = amount
func update_bar(amount : int) -> void:
value = amount