If i put the function below, in Update() it will show one image after another,… but then it will be stuck on the last image, and not repeat beginning from the first image (grid1),… What is going on ? It’s in Update() so it should continue to loop right ?
function AnimatePlane()
{
AllItems[20].renderer.material.mainTexture = Resources.Load(“grid1”);
yield WaitForSeconds(0.4);
AllItems[20].renderer.material.mainTexture = Resources.Load(“grid2”);
yield WaitForSeconds(0.4);
AllItems[20].renderer.material.mainTexture = Resources.Load(“grid3”);
yield WaitForSeconds(0.4);
AllItems[20].renderer.material.mainTexture = Resources.Load(“grid4”);
yield WaitForSeconds(0.4);
AllItems[20].renderer.material.mainTexture = Resources.Load(“grid5”);
yield WaitForSeconds(0.4);
}