I was just trying to track GameObject position in an array and then check if there are three (or more) in a row, horizontally, vertically and diagonally and then using the Array reference - delete those matching Game Objects. Just simple Match Three style stuff really.
Lets say one block at a time falls down into a 4x4 grid and when we press a button they freeze and lock into a grid.
So the first block falls and we move it into the bottom left position: A1
OOOO ROW C
OOOO ROW B
XOOO ROW A
1234
Then two more fall and we lock them into B2 and C3, creating a diagonal three:
OOXO ROW C
OXOO ROW B
XOOO ROW A
1234
So, what I want to do is:
Add that these three game objects are in their positions to the Array as each one happens.
Check if there are three in a row after each one is in position.
Then delete the three gameobjects using the Array position data.
Does that make sense?