Everything was working fine and then I got to Instantiating enemies and pressed play and the game objects go into the hierarchy but they dont move and all spawn on the same position. I followed it down to a tee and I even coped the GitLab code over and still no joy. Double, triple checked everything… what have I done wrong here? It must be something Unity side in terms of relationships between fields?
Hi Fritzgenius,
First of all, check how the enemies are supposed to move. By default, game objects don’t move in Unity.
Secondly, have you already tried to add Debug.Logs to your code to see what is going on during runtime? Maybe an if-condition gets evaluated to false.
sorry this is late, but have you checked if your ghost prefab has the “pathfinder” script attached to it?