Ejemplo n.º 1
0
    private void ProcessNode(DialogNode node)
    {
        HideDialogChoices();
        currentDialog.IncreaseDialogProgress(node.dialogProgressIncrement);
        inventory.RemoveItems(node.requieredItemsRemove);

        displayedPlayerText.text = string.Empty;
        displayedNpcText.text    = string.Empty;
        DisplayText(currentDialogNode.playerText, displayedPlayerText, playerAudio, node.playerClip,
                    () =>
        {
            DisplayText(currentDialogNode.npcText, displayedNpcText, otherAudio, node.npcClip,
                        () =>
            {
                ShowDialogChoices();
            });
        });
        CallNodeEvent(node);
    }