Good day,
I would like to have the countdown timer format to be in Minutes:Seconds rather than the current format which is Seconds:Micro seconds.
I have attached the script of the countdowntimer for you guys.
5129411–507032–CountDownScript_updated 1st November.pdf (43.5 KB)
not sure if this will be good with rounded values
//in seconds: 120 = 2 min.
public float tmpTime;
int minutes, seconds;
void Update()
{
tmpTime = tmpTime - Time.deltaTime;
minutes = (int) tmpTime / 60;
seconds = (int) tmpTime % 60;
}
and use better code tags instead of the downloads for the code text
eses
3
@whalewale
Usually I’d first google; this has been answered several times :
P.S.
Most people wont open dodgy looking attachments, PDFs can contain all kinds of stuff… just attach the code here permanently.
1 Like
I am finding hard to include this into my script