Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool[] thing = new bool[4];
- OR
- public bool[] thing = new bool[]{false, false, false, false};
- then i
- foreach(bool value in thing){
- Debug.Log(value);//Works, but
- value = true; //gives me Cannot assign to `slot' because it is a `foreach iteration variable'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement