Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public bool[] thing = new bool[4];
  2. OR
  3. public bool[] thing = new bool[]{false, false, false, false};
  4.  
  5. then i
  6. foreach(bool value in thing){
  7. Debug.Log(value);//Works, but
  8. value = true; //gives me Cannot assign to `slot' because it is a `foreach iteration variable'
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement