private IEnumerator DisplayErrorForSeconds(string text, float speechTime) { _pauseTyping = true; errorPopup.DisplayPopupText(text); yield return(new WaitForSeconds(speechTime)); _pauseTyping = false; errorPopup.HidePopupText(); }
private void ResetView() { StopErrorCoroutine(); StopTypingCoroutine(); StopGameOverCoroutine(); storyText.text = string.Empty; errorPopup.HidePopupText(); defeatPopup.HidePopupText(); victoryPopup.HidePopupText(); }