private IEnumerator FadeOutAndDestroy(GameObject block) { Renderer r = block.GetComponent <Renderer>(); for (float alpha = 1.0f; alpha >= 0; alpha -= 0.1f) { Color color = r.material.color; color.a = alpha; r.material.color = color; block.transform.localScale *= 1.125f; yield return(new WaitForSeconds(0.01f)); } levelLoader.DestroyBlock(block); if (levelLoader.GameOver()) { //TODO: something exciting because they won Invoke("LoadNextLevel", 1.5f); } }