Meaning this
Task Set Complete is a list of booleans that are ticked off when something enters a variable amount of collisions.
Should I do this using ‘foreach’ for each collision, and increase the value each time?
I’m unsure - I would kind of like to tag each object with their respective ‘element number’ (even though these aren’t really accessible).
If you have an array you can use the .IndexOf() method to ask where a particular entry exists.
Keep in mind it could exist at more than one place in the array. IndexOf returns the first occurrence:
1 Like
And List can do the same thing.
2 Likes
Thanks all, I’ll try the index method, I think array does the job for what I need currently!