Hello, like many, I have some trouble understanding how timers work.
My problem is that I can’t get the hundredths to work.
Here is my code, if someone can help me :
float time ;
void Awake () {
time = (int)Time.time;
}
void Update()
{if (myCondition) {
GetComponent<Text> ().text = string.Format("{0:00}:{1:00}:{2:00}",Mathf.Floor(time/60),time%60,(time*100)%100);
time = (int)Time.time;
}