private IEnumerator EndTextCoroutine()
    {
        yield return(new WaitForSeconds(textArray.Length * textSpeed + 1f));

        container.SetActive(false);
        playerInteraction.StopInteraction();

        if (gameManager1 != null)
        {
            gameManager1.CheckEndText();
        }
        else if (gameManager2 != null)
        {
            gameManager2.CheckEndText();
        }
        else if (gameManager3 != null)
        {
            gameManager3.CheckEndText();
        }
    }