IEnumerator RunTypewriter(int i)
{
dialogue1Text.GetComponent<Text>().text = "";
yield return new WaitForSeconds(1f);
foreach (char letter in dialogueList[i].ToCharArray()) {
dialogue1Text.GetComponent<Text>().text += letter;
yield return new WaitForSeconds(textSpeed);
}
yield return new WaitForSeconds(1f);
}