public GameObject[] ObjetoAOcultar; foreach(GameObject objet in ObjetoAOcultar) { objet.GetComponent<SpriteRenderer>().color = new Color(1f, 1f, 1f, alphaLevel); }