Did a quick search and couldn't see if anyone has asked this before... What would be a good way to spawn randomly across a two floor map? (once only spawning things like health pick-ups, not enemy waves)
So yes I can add lots of empty gameObjects and have a script randomly pick out a few from the array and spawn at that Transform.
Just wondered if there was a clever way of doing it?
Yes, I've used Wave Offsets in the past, but I can't figure out how to stop spawning in mid air. Thinking it through now, I guess my spawned prefab could fire a raycast down, OnSpawned, and if it didn't hit a floor, then it would despawn and try again.
Thanks for the quick response. Just talking it through go me to a solution
I personally would just set up a bunch of Triggered Spawners with a custom event, and each of those would be in the precise spawn position so you don't need to do any Vector math. But they both will work.