IEnumerator Prepararse(Text text, GameObject active) { text.text = 5.ToString(); yield return(new WaitForSeconds(1)); text.text = 4.ToString(); yield return(new WaitForSeconds(1)); text.text = 3.ToString(); yield return(new WaitForSeconds(1)); text.text = 2.ToString(); yield return(new WaitForSeconds(1)); text.text = 1.ToString(); yield return(new WaitForSeconds(1)); text.text = "VAI!"; yield return(new WaitForSeconds(1)); iniciaPartida = true; audioPlayer.Caraca(); active.SetActive(false); }