Obtenir l'unité du composant de texte
GameObject.GetComponent<Text>().text = "Hello World!";
Comfortable Capybara
GameObject.GetComponent<Text>().text = "Hello World!";
numericalScore.GetComponent<UnityEngine.UI.Text>().text = "Score : " + scoreManager.score;