Store Neighbors game Object in list.

i’m store ball into a list100865-7.png
i do some code for this, but some ball can not store that Neighbors gameObject.

like:
here in image 3 ball (A,B,C).
B ball can store of C ball.
C ball can store B ball
but A ball can not be store B ball.

my code look like this

You didn’t post your find_neighbour code. I think here required that code. Unable to get idea how you are finding neighbour. What i am thinking you can find neighbour using colliders. Like A,B,C balls are very closed to eachother. If we check in OnCollisionEnter or OnTriggerEnter. In these we can get neighbor object who would be colliding using collider information. It may be wrong but this is my idea.