void EnterDialogue() { if (!DialogueControll.instance.activeDialogue) { GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>().FreezeMovement(); dialogueControl.SetDialogue(conversations[dialogueIdx], this); dialogueControl.activeDialogue = true; } dialogueControl.AdvanceConversation(); }
void EnterDialogue() { triggerAmount--; if (dialogueIdx < conversations.Length) { if (!dialogueControl.HasActiveDialogue() || endsCurrentDialogue) { if (dialogueControl.HasActiveDialogue()) { dialogueControl.EndDialogue(); } dialogueControl.SetDialogue(conversations[dialogueIdx]); dialogueControl.SetTrigger(this); //dialogueControl.SetActiveDialogue(true); dialogueControl.AdvanceConversation(); } } }