Quantcast
Channel: Questions in topic: "loops"
Viewing all articles
Browse latest Browse all 184

For loop not working

$
0
0
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); } }

Viewing all articles
Browse latest Browse all 184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>