Hi guys,
I got a question about an array in a for loop here is my code:
for (int i = 0; i < theScrews.Length; i++) {
theScrews *.renderer.material.color = Color.black;*
-
}*
As you can see there is nothing wrong with it.
But my question is, is it possible to skip for example theScrews[2]. So it wont change the color.
Here is the “psuedo code”
-
for (int i = 0; i < theScrews.Length; i++) {*
_ theScrews .renderer.material.color = Color.black;_
except for theScrews[2]
//theScrews[2] doesn’t change to the color black
* }*