Hi. I am trying to use two for loops together, however only the first one is working and the second is not. Please help me out.
public GameObject[] day;
private int dayno;
public void Start(){
day= new GameObject[31];
for(int i=0; i<31;i++){
day[i] = GameObject.Find ("DAY" + i);
}
for (int i = 31; i == 0; i--) {
day [i].SetActive (false);
}
}
↧