void Update() { timer -= Time.deltaTime; // no decimal points string s = timer.ToString().Substring(0, 3); if (timer < 100 && timer > 10) { s = s.Substring(0, 2); } timer1.GetComponent <Text>().text = s; timer2.GetComponent <Text>().text = s; timer3.GetComponent <Text>().text = s; if (timer < 0.0f) { deathObj.ManualTrigger(); timer = resetValue; } }