// Update is called once per frame void FixedUpdate() { theTime = robotAgent.GetElapsedTime(); string minutes = Mathf.Floor((theTime % 3600) / 60).ToString("00"); string seconds = (theTime % 60).ToString("00.##"); text.text = minutes + ":" + seconds; }