Пример #1
0
 public void TriggerDialogue()
 {
     dialogue.name1 = playerName;
     dialogue.name2 = npc.myName;
     // If the npc has not been talked to, do the dialogue.
     // Other wise, do the one liner.
     if (!npc.IsTalkedTo())
     {
         sentences = npc.GetDialogue();
     }
     else
     {
         dialogue.name1 = npc.myName;
         sentences      = npc.GetOneLiner();
     }
     dialogue.SetDialogue(sentences);
     FindObjectOfType <DialogueScript>().StartDialoguePlayer(dialogue);
 }