{
float timeleft = 600;
void Update ()
{
timeleft -= Time.deltaTime;
Debug.Log(timeleft);
}
}
This simple code counts down in seconds, but displays it as a long float. How do I cast timeleft as an integer or display it as an integer? By changing float to int I get an error saying ‘are you missing a cast?’