public void UpdateSliderBlockingGesture(GestureManager.GestureTypes type, float timer) { Slider currentSlider = GetSliderBasedType(type); _countDownSlider.StartTimerUpdatePercentage(timer, () => { currentSlider.value = 0; currentSlider.image.color = Color.green; if (_endEventCountDown != null) { _endEventCountDown(type); } }, (float percent) => { currentSlider.image.color = Color.red; currentSlider.value = Mathf.Clamp01(1 - percent); }); CurrentGestureText.text = type.ToString(); Debug.Log("Change Gesture: " + type.ToString()); }