Trying to change text of button using script

I’m trying to change the text of my button using the game controller script (obviously) so here’s what I’m doing:

My button is called “Button 1”

In my script I do:

public text buttonOne

void Start(){

buttonOne = GameObject.Find("Button 1").GetComponent<Text>();


void Update(){

buttonOne.text = "Buy";  


But the text doesn’t change. Thanks for the help in advance :3

public text buttonOne;//just attach the button text to this script by drag & drop .
void Start()
buttonOne.text = “Buy”;