Besides the methods of a list starting with uppercase (Add, Remove) I see nothing wrong with this code. It should work.
However, this might be a better approach:
To get the surrounding objects of any object in your scene, you can use Physics.OverlapSphere or Physics.OverlapBox, which both return an array of colliders.
↧