private int index = 0;
public Texture[] textures;
//1%3=1,2%3=2,3%3=0 防止下標越界
index = (index + 1) % textures.Length;