public void StartDialogue(Dialogue dialogue, GameObject talkingNPC) { pause.SetActive(false); reset.SetActive(false); rl.enabled = false; laikaCollider.enabled = false; gq = talkingNPC.GetComponent <GiveQuest>(); intro = talkingNPC.GetComponent <IntroCutsceneDialogue>(); q2d = talkingNPC.GetComponent <Quest_Dialogue_Logic>(); mechD = talkingNPC.GetComponent <MechanicDialogueUpdater>(); jailed = talkingNPC.GetComponent <JailedNPCDialogue>(); talking = true; animator.gameObject.GetComponent <Animator>().SetBool("IsOpen", true); nameText.text = dialogue.name; if (sentences != null) { sentences.Clear(); } foreach (string sentence in dialogue.sentences) { sentences.Enqueue(sentence); } DisplayNextSentence(); }
public void StartDialogue(IntroCutsceneDialogue dialogue) { animator.SetBool("isOpen", true); nameText.text = dialogue.name; sentences.Clear(); foreach (string sentence in dialogue.sentences) { sentences.Enqueue(sentence); } ContinueDialogue(); }