IEnumerator fade() { yield return(StartCoroutine(fadei.fade())); yield return(new WaitForSeconds(waitTime)); yield return(StartCoroutine(fadeo.fade())); }
IEnumerator fade() { inter.gameOver = true; yield return(StartCoroutine(fadei.fade())); yield return(new WaitForSeconds(waitTime)); inter.gameOver = false; yield return(StartCoroutine(fadeo.fade())); }