IEnumerator TypeOutGuess(string guess) { StringBuilder sb = new StringBuilder(); StopTimer(); for (int i = 0; i < guess.Length; ++i) { sb.Append(guess[i]); guessLabel.text = sb.ToString().ToUpper(); AudioManager.Instance.Play("Type"); yield return(new WaitForSeconds(0.1f)); } yield return(new WaitForSeconds(2f)); if (m_currentTarget.IsGuessValid(guess)) { AudioManager.Instance.Play("Yay"); //correctObject.transform.localScale = Vector3.zero; correctObject.SetActive(true); //correctObject.transform.DOPunchScale(Vector3.one, 0.5f); yield return(new WaitForSeconds(2f)); correctObject.SetActive(false); SetState(State.Tally); } else { IncorrectGuess(); } }