// Update is called once per frame void Update() { instruction.GetComponent <TextMeshProUGUI>().text = Globals.instruction; score.GetComponent <TextMeshProUGUI>().text = parcours.getScore().ToString() + " PTS"; ranking.GetComponent <TextMeshProUGUI>().text = Globals.ranking; instruction.SetActive(Globals.displayInformation); score.SetActive(Globals.displayScore); ranking.SetActive(Globals.displayRanking); nameInput.SetActive(Globals.displayForm); sendForm.SetActive(Globals.displayForm); Globals.playerName = nameInput.GetComponent <InputField>().text; }