Maybe you could use a collider and make it a trigger and see if it is close to other cubes on both sides.
Just a quick suggestion.
Maybe you could use a collider and make it a trigger and see if it is close to other cubes on both sides.
Just a quick suggestion.