private void Update() { slider.value = CalculateSliderValue(); if (timeRemaining <= 0) { timeRemaining = 0; destroy = true; if (destroy == true) { _destroy._DestroyCharacter(); _strikes.strikes++; destroy = false; timeRemaining = timeMax; } } else if (timeRemaining > 0) { timeRemaining -= Time.deltaTime; } }