void Start() { teclas = new Dictionary <string, Tecla>(); // Se obtiene el transform que contiene todas las teclas // t = transform.Find("Whites"); for (int i = 0; i < 2; i++) { Tecla tecla = t.GetChild(i).GetComponent <Tecla>(); tecla.SetNota(notas[i]); teclas.Add(tecla.gameObject.name, tecla); } }