private void upDateChrono() { try { string st = LAP + chronometer.getTime() + SEC; UnityEngine.UI.Text tx = timeonscreen.GetComponent <UnityEngine.UI.Text>(); tx.text = st; } catch (Exception e) { Debug.Log("Exception chrono" + e.Data); } }