void Update() { if (Input.GetKeyDown(KeyCode.E)) { continueSound.Play(); if (!textTyper.AnyEntriesLeft) { if (isIntro) { loadingDialogObject.SetActive(true); LevelMaster.viewedIntro = true; SceneManager.LoadSceneAsync(nextLevel); } else { cover.SetActive(true); StartCoroutine(TransitionDelayed()); } return; } textTyper.LoadNextString(); textObject.GetComponent <Animator>().StopPlayback(); textObject.GetComponent <Animator>().Play("ContinueAnim"); } }