summaryrefslogtreecommitdiff
path: root/src/ui/hud/progress_bars/scripts/slow_progress.gd
blob: de1bccb4b9fded3147c972ca105fd887219f9833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extends HBoxContainer

onready var progress: TextureProgress = $Progress


func _ready():
	Event.connect("snake_slow_progress", self, "_on_snake_slow_progress")
	progress.max_value = Global.POINTS_TO_SLOW


func _on_snake_slow_progress(_progress: int) -> void:
	progress.value = _progress