예제 #1
0
    public void SelectAnswer(QuestsController.Answer answer)
    {
        DialogueSystem.reference.log.Add(new string[] { AITextLabel.text, AISprite.spriteName, answer.text });
        DialogueSystem.reference.currentLogIndex += 1;

        QuestsController.ApplyResults(answer);

        QuestsController.QuestNode nextNode = QuestsController.FindNode(quest, answer.pointer);
        if (nextNode == null)
        {
            DialogueSystem.reference.FinishQuest();
            return;
        }
        currentNode = nextNode;
        PrepareNodeInfo(currentNode);
        UpdateUI();
    }