lets say i have an Array of textures and i would like to go forward and backward while pressing a button. Forward option is working just fine but i cant do the backward scrolling.
Forward
if (i < texturesArray.Length-1) {
i++;
}else {
i = 0;
}
Backward
if (i < texturesArray.Length-2) {
i++;
}else {
i = 0;