public void CreateButtons(string buttonText, string storyPoint, string eventChoice) { ConversationButton newButton = Instantiator.Instance.GetNewT <ConversationButton>(button); newButton.SetUpButton(buttonText); newButton.SetUpStoryOptions(storyPoint, eventChoice); //SelectionHandler.Instance.Assign(); }
public void AddUIButtonToList(ConversationButton button) { for (int i = 0; i < conversationButtons.Count; i++) { if (conversationButtons[i] == null) { conversationButtons[i] = button; return; } } conversationButtons.Add(button); }