Currently on lecture 118 of the Unity 2D course.
So I have set up 2 paths for my enemies to follow and prefabbed both, them and the enemies. They both have wave config files attached to them correctly and all the code is perfectly up to date, even so far as copying Gary’s code working perfectly as well. 2 problems I’m having are wrecking my brain a little and I’ve exhausted all of my options (including chatGPT)
So the first issue is that when the enemy spawns the 3 enemies (tried having 3 of the same prefab enemies, setting 3 different variants of the same prefab) but they’re all on top of eachother, tried adjusting the speed and spawn times and nothing helps.
The second issue I’m having is, nothing is following the second path (yellow is the first path where one single ship follows correctly, albeit multiple ships on top of eachother and the green diamonds mark the second path where nothing follow it at all), I can’t see anything set up differently.
I’m at a total loss here. As a novice I have no idea what I’ve done wrong.
This is a snippet of my general overview
This is what my wave and player prefabs look like
This is my enemy spawner code
And this is my pathfinder code