I don't know how to apply findgameobjectswithtag in this section or any better solution for it. Thank you in advance.
for js it would like this
let me explain when accessing objects inside a tag you must create a way for it to cycle through each object, if you just state destory gameobjectwith tag then it will destroy only one, but add a simple loop then it will effect each of them.
if say you only want to delete say five of ten objects then just replace length witth a number
you could use this with other things as well for example heres a snippet from my code
answered Jun 17 '12 at 12:00 PM