Destroy one prefab clone from List of spawning clones.
Hello I’m new to unity, I’m struggling with one thing..
I made a prefab, & I spawn it every few seconds in different Y positions.
The Spawn method is inside the Update()
I want the player to collide with that prefab, & then the prefab will be removed from list & destroyed.
my issue : When player collide with one of the clones, All the Clones are destroyed!
how can I tell it to destroy only the clone in collision? I guess the problem with the List. because it’s of type prefab ( Transform ) . & I try to make For loop, to destroy note in that index. still bot working
please help
Comment
Your answer