void Update() { timeLeft -= Time.deltaTime; timeSlider.value = timeLeft; if (timeLeft <= 0) { playerController.setIsAlive(false); } }
void Update() { timeLeft -= Time.deltaTime; timeSlider.value = timeLeft; if (timeLeft <= 0) { playerController.setIsAlive(false); } }