public void updateChoiceButtons() { if (currentState.getChoice1Text() == "NULL") { //no choice to choose from, disable the button choice1Button.enabled = false; choice1Button.GetComponentInChildren <CanvasRenderer>().SetAlpha(0); choice1Button.GetComponentInChildren <Text>().color = Color.clear; } else { choice1Button.enabled = true; choice1Button.GetComponentInChildren <CanvasRenderer>().SetAlpha(100); choice1Button.GetComponentInChildren <Text>().color = Color.black; choice1.text = currentState.getChoice1Text(); } //choice1.text = currentState.getChoice1Text(); //Debug.Log("Inside updateChoice"); if (currentState.getChoice2Text() == "NULL") { //no choice to choose from, disable the button choice2Button.enabled = false; choice2Button.GetComponentInChildren <CanvasRenderer>().SetAlpha(0); choice2Button.GetComponentInChildren <Text>().color = Color.clear; } else { choice2Button.enabled = true; choice2Button.GetComponentInChildren <CanvasRenderer>().SetAlpha(100); choice2Button.GetComponentInChildren <Text>().color = Color.black; choice2.text = currentState.getChoice2Text(); } }