Example #1
0
        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);
        }
Example #2
0
        private void ShowDialogue(DialogueStruct current)
        {
            NPCtext.text = current.npcWords;

            replyButton1Text.text = current.firstOption;

            replyButton2Text.text = current.secondOption;
        }