public bool Interact(GameObject player)
 {
     eventSystem.SetSelectedGameObject(gameObject);
     PlayerInDialogue?.Invoke(true);
     Time.timeScale = 0f;
     StartCoroutine(StartDialogue());
     return(true);
 }
 private void ExitDialogue()
 {
     if (currentSentenceCoroutine != null)
     {
         StopCoroutine(currentSentenceCoroutine);
         currentSentenceCoroutine = null;
     }
     currentSentence      = null;
     isInDialogue         = false;
     hasRead              = true;
     dialogueTextBox.text = "";
     StartCoroutine(uiUtility.UIWipeOut(dialogueUIParent, UIUtility.UIWipeStyle.Vertical, wipeSpeed));
     Time.timeScale = 1;
     PlayerInDialogue?.Invoke(false);
     EnableInteractableUI();
 }