Fighter Script gives NullReferenceException

I saw someone asked this but couldn’t figure out the solution, Enemy doesn’t move after running the game and it shows the NullReferenceException.
I’ve tried following the lectures but couldn’t figure out where i made the mistake.

I’ll provide the github link for my code:

According to your console and your script you are trying to access a Mover component which the enemies might not have, check if the enemies have the Mover script attached, maybe you modified the prefabs or something similar that removed the script from those units.

6 Likes

I kept checking the fighter script . Thanks!!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms