// Shows buttons for player to make a choice void ShowChoices() { List <Choice> choices = story.currentChoices; // Throws error if more choices than available buttons if (choices.Count > buttons.Length) { Debug.LogError("More choices than buttons"); return; } madeDecision = false; // Sets buttons for (int x = 0; x < choices.Count; x++) { buttons[x].transform.GetComponentInChildren <TextMeshProUGUI>().text = choices[x].text; buttons[x].GetComponent <Selectable>().element = choices[x]; } buttonAnimator.Appear(choices.Count); }