Error in the array of animation, see in the video please that they will understand, at the time of the exchange of an object to another it is completely erased.
public Animation[] Animation1;
private int Selecao8;
public void ProximaSelecao8()
{
//Animation1 [Selecao8].SetActive (false);
Animation1[Selecao8].GetComponent<Animation>().Play();
Animation1[Selecao8].GetComponent<Animation>().enabled = false;
Selecao8++;
if (Selecao8 > Animation1.Length - 1)
{
Selecao8 = 0;
}
//Animation1 [Selecao8].SetActive (true);
Animation1[Selecao8].GetComponent<Animation>().Play();
Animation1[Selecao8].GetComponent<Animation>().enabled = true;
}
public void AnteriorSelecao8()
{
//Animation1 [Selecao8].SetActive (false);
Animation1[Selecao8].GetComponent<Animation>().Play();
Animation1[Selecao8].GetComponent<Animation>().enabled = false;
Selecao8--;
if (Selecao8 < 0)
{
Selecao8 = Animation1.Length -1;
}
//Animation1 [Selecao8].SetActive (true);
Animation1[Selecao8].GetComponent<Animation>().Play();
Animation1[Selecao8].GetComponent<Animation>().enabled = true;
}
}