Hello,
My character prefabs are collections. I spawn them using the collection factory. I would like to store the references to all of the spawned characters so I could later perform actions on all of them. Mainly I need it to delete all the currently spawned characters. So this would mean iterating over all of them.
I can store the returned value of collection_factory.create() in the table but when looping through the table sometime later, how can I use the stored value to reference the spawned gameobjects to then delete them? So how can I access the specific objects?
Thanks!