I wrote this script for a timer object in a unity game I'm working on.
void DisplayTime(float timeToDisplay)
{
timeToDisplay += 1;
TimerText.text = string.Format("{0}", timeRemaining);
}
Right now the Timer displays 00.000. How can I make it so It only displays the first two digits?
Thanks for your time :) <3