private void ShowCurrent() { DialogueStruct showThis = new DialogueStruct(); switch (currentConversation) { case DialogueEnum.First: showThis = firstConversation[conversationState]; break; case DialogueEnum.Second: showThis = secondConversation[conversationState]; break; case DialogueEnum.Third: showThis = thirdConversation[conversationState]; break; case DialogueEnum.Last: showThis = lastConversation[conversationState]; break; } ShowDialogue(showThis); }
private void ShowDialogue(DialogueStruct current) { NPCtext.text = current.npcWords; replyButton1Text.text = current.firstOption; replyButton2Text.text = current.secondOption; }