My basic issue is this, I have multiple game objects set up in a 3x3 grid. Each game object holds a number value. I want a game object to recognize the NUMBER VALUE from each other game object that shares a common border.
This picture should explain more clearly:
In this image each square would be the game object I spoke of and each number inside the square would be the number value assigned. So I want the top left square with the value of 1 to recognize that it is touching borders with the top right and bottom left squares and also distinguishing that top right = 2 and bot left = 3. There should be no recognition of bottom right or the value 4.
The numbers value are not hard coded to the game objects, they will be changing variables depending on the level.
Any tips or help would be greatly appreciated.