TowerDefense/UI/energy_bar_2d.gd

10 lines
174 B
GDScript3
Raw Normal View History

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