//Increase lives private IEnumerator LivesUp() { LivesController lives = FindObjectOfType <LivesController>(); lives.IncreaseLives(1); playerRender.color = new Color(1f, 0, 1f); yield return(new WaitForSeconds(1.5f)); playerRender.color = initalPlayerColor; }