B0a0sti8_firstunityproject/Assets/Skripts/Skills/CountDown.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;

public class CountDown : MonoBehaviour
{
    public float timeLeft;

    public TextMeshProUGUI text;

    void Update()
    {
        if (timeLeft > 0)
        {
            timeLeft -= Time.deltaTime;
            text.text = Mathf.Round(timeLeft).ToString();
        }
        else
        {
            text.text = "";
        }
    }
}