here is my for loop code,
private bool setspinerotate = false;
private bool setspinerotate2 = false;
private bool setspinerotate3 = false;
void clearall()
{
bool[] checkjoint = {setspinerotate,setspinerotate2, setspinerotate3};
for (int a = 0; a < checkjoint.Length; a++)
{
checkjoint[a] = true;
}
}
and I perform this function in another function, all the value is not turning to true
. Why?