private void Start() { livesImage = GetComponentsInChildren <Image>(); color = new Color(1.0f, 1.0f, 1.0f, 1.0f); for (int i = 0; i < PlayerManager.instance.playerLives; i++) { livesImage[i].color = color; } StartCoroutine(canvasGroup.FadeOutCanvas(2f)); }