I have a button that creates ball.
This ball fly around the screen, and whenever it hits red box it should be destroyed.
The problem that whenever I try to destroy this object, it destroy all others objects of this kind. In other words, clicking the button creates new object of ball, thus unlimited number can be spawned, however I require to destroy only ones that come into collision with the red box.
Could anyone help me to solve this issue?