Trying to change opacity of a group of images in an "animated" way

Im trying to do what the title says but im getting error NullReferenceException: Object reference not set to an instance of an object Spawner.Update ()
My code:
public class Spawner : MonoBehaviour
{
Image[ ] imagenAdvSpawn;
Color color;
float opacidad = 0;
bool corrio = false;
GameObject[ ] objetoImagenAdvSpawn;

void Start()
{
color = GameObject.Find(“Imagen Adv Sp”).GetComponent().color;
objetoImagenAdvSpawn = GameObject.FindGameObjectsWithTag(“ImagenAdv Spawn”);
imagenAdvSpawn = new Image[objetoImagenAdvSpawn.Length];
for ( int i = 0; i < objetoImagenAdvSpawn.Length; ++i )
{
imagenAdvSpawn = objetoImagenAdvSpawn*.GetComponent();*
}
}
void Update()
{
if(!corrio)
{
StartCoroutine(CambiarOpacidadImagenAdvSp(0f, 1f, 2f));
}
color.a = opacidad;
for (int i = 0; i < imagenAdvSpawn.Length; ++i)
{
imagenAdvSpawn*.color = color;*
}
if(Input.GetKeyDown(KeyCode.T))
{
Debug.Log(objetoImagenAdvSpawn.Length);
}
}
IEnumerator CambiarOpacidadImagenAdvSp(float opacidadIncilial, float opacidadObjetivo, float duracion)
{
corrio = true;
float timeElapsed = 0f;
while(timeElapsed < duracion)
{
opacidad = Mathf.Lerp(opacidadIncilial, opacidadObjetivo, timeElapsed / duracion);
timeElapsed += Time.deltaTime;
yield return null;
}
opacidad = 0.5f;
}
}

How to fix a NullReferenceException error:
https://forum.unity.com/threads/how-to-fix-a-nullreferenceexception-error.1230297/

I just noticed I write “ImagenAdv Spawn” instead of “Imagen Adv Spawn” now it works fine lol

Remember the first rule of GameObject.Find():

Do not use GameObject.Find();

More information: https://starmanta.gitbooks.io/unitytipsredux/content/first-question.html

More information: https://discussions.unity.com/t/899843/12