change value of button text by script unity code example
Example: unity how to change the text on a button
GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";
GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";