Текст изменения единства
// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
SkelliBoi
// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
TextVar = TextGameObject.color = Color.red;
GameObject,GetComponent<Text>().color = Color.blank //write any color in the blanck