コード例 #1
0
    private void Talk()
    {
        //Debug.Log(gameObject.name + " if anybody need my cue, I'm talking now!");
        if (OnTalkStart != null)
        {
            OnTalkStart(this);
        }

        if (isQuestFail && this.gameObject.name == " Briar_Bartender")
        {
            dialogueDisplay.conversation = dialogueHolder.conversation[5]; //cheat
            dialogueDisplay.StartConversation();
        }

        if (isOffended)
        {
            dialogueDisplay.conversation = dialogueHolder.conversation[5]; //cheat
            dialogueDisplay.StartConversation();
        }

        if (!onQuest && !isOffended)
        {
            dialogueDisplay.conversation = dialogueHolder.conversation[dialogueHolderIndex];
            dialogueDisplay.StartConversation();
        }

        if (onQuest && !isOffended)
        {
            dialogueDisplay.conversation = questHolder.questConversation[questHolderIndex];
            dialogueDisplay.StartConversation();
        }

        //Debug.Log(dialogueHolderIndex);
        input.enabled = false;
    }
コード例 #2
0
 public void UserSelectTrue() //This will lead to branch A
 {
     Debug.Log("To convo0011");
     dialogueDisplay.conversation = questions.correctDestinationBlock;
     dialogueDisplay.StartConversation();
     questionArea.SetActive(false);
 }
コード例 #3
0
 public void UserSelectTrue() //This will lead to branch A
 {
     dialogueDisplay.conversation = questions.correctDestinationBlock;
     dialogueDisplay.StartConversation();
     questionArea.SetActive(false);
     if (OnAnswerSelected != null)
     {
         OnAnswerSelected(this);
     }
 }
コード例 #4
0
    private void Talk()
    {
        //Debug.Log(gameObject.name + " if anybody need my cue, I'm talking now!");
        if (OnTalkStart != null)
        {
            OnTalkStart(this);
        }

        Debug.Log(dialogueHolderIndex);
        dialogueDisplay.conversation = dialogueHolder.conversation[dialogueHolderIndex];
        dialogueDisplay.StartConversation();
        Debug.Log(dialogueHolderIndex);
        input.enabled = false;
    }