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