void Update() { m_cumulativeDeltaTime += Time.deltaTime; while (m_cumulativeDeltaTime >= m_characterInterval && m_partialText.Length < m_text.Length) { m_partialText += m_text[m_partialText.Length]; m_cumulativeDeltaTime -= m_characterInterval; } m_label.text = m_partialText; if (m_text.Length == m_partialText.Length) { TypeWriterSound.PauseSound(); } SkipText(); StartText(); }