Hey all,
I got a dumb question I'm hoping someone can answer for me. I know its probably a simple problem but I just can't see what I'm doing wrong.
Basically over time the hut spawns enemies and parents those enemies to the hut. Once the hut remains for X amount of time, it will produce another hut randomly around it. Problem is that when I use a create action for the hut prefab, it clones all the enemies the previous hut spawned. I'm not sure what is causing this as I'm only using the prefab to create the object that has no children. Has anyone got any ideas what is doing this?
Edit: Looking into this a bit more, it seems that the hut is spawning the prefab in the editor but as soon as I launch the game it switching to the hut in the scene? I'm just getting more and more confused by this now but any help would be very welcome.
Edit 2: It seems like there is an issue or bug with prefabs trying to create themselves maybe? I made 2 different named Prefabs that spawn each other but have the exact same function and now seems to be working perfectly. Looks like this is just a little workaround the issue I found.
Thanks