public void EndDialogue()
    {
        dialogueIndex = 0;
        int index = currentTalk.dialogueIndex + 1;

        if (index >= currentTalk.TalkSO.dialogue.Count)
        {
            if (currentTalk.TalkSO.Loop)
            {
                currentTalk.dialogueIndex = 0;
            }
        }
        else
        {
            currentTalk.dialogueIndex++;
        }
        StartCoroutine(DelayInput(true));
        LeanTween.scale(DialoguePanel.gameObject, new Vector3(0, 0, 0), 0.3f).setEase(LeanTweenType.easeOutQuad);
        LeanTween.scale(SpeakerPanel.gameObject, new Vector3(0, 0, 0), 0.3f).setEase(LeanTweenType.easeOutQuad);

        currentTalk.GetComponentInParent <Actor>().ResumeAction();
    }