IEnumerator ReducePlayerLife() { yield return(StartCoroutine(canvasGroup.FadeInCanvas(1f))); //Fade off the last life from HUD. yield return(StartCoroutine(livesImage[PlayerManager.instance.playerLives].FadeOutImage(1f))); yield return(StartCoroutine(canvasGroup.FadeOutCanvas(1f))); }