I'm trying to link 2 prefab I "instanciated" with my wave but I did'nt figure how to do this. I'm trying to create a sun and a planet rotating around the sun but for this I need get a reference on my planet. Can you help me with this ? Thank you.
Thank you for your quick answer, it can be a solution but if I do this I will not be able to choose how many planet are rotating around the sun. I also have differents type of prefab (differents sprites and colors).
I'm back, I tried it works quite well, I now randomize size, colors, sprites by script attach to planet's prefabs. I now have multiple sun prefab with 1, 2 or 3 planets children which are rotating around them. I also have attached a killable script on planets to be able to destroy them but I have one error I don't understand.
"The Transform 'planet' passed to Despawn is not in Pool Boss. Not despawning."
In fact my planets are in pool boss but suns prefabs are. Do I really have to add all the children planet to the Poll boss ? Because all the planet children prefabs are the same.