Пример #1
0
    void Update()
    {
        timeLeft        -= Time.deltaTime;
        timeSlider.value = timeLeft;

        if (timeLeft <= 0)
        {
            playerController.setIsAlive(false);
        }
    }