Problem with enemy

Hi, I have done my own assets with magicaVoxel, and since then I have this problem:


Also, the enemy doesn´t move. Someone know why? Thanks

Hi Eduardo,

NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. If you exposed a field in the Inspector, make sure that it’s not empty.

Sorry I follow the problem but don´t find the solution. All the exposed fields are with some objects from the game. Furthermore, now the lines are others.
imagen

Did you double click on the error message? If so, share the line of code from your script, please.

Line 13 from Script Enemy movement:
imagen
Script Pathfinder:
Line 29:
imagen
line 39:
imagen
line 50:
imagen

thanks for your help, I appreciated really much.

Oh my, I’m so sorry. For some reason, I missed your answer. Next time, please feel free to ping me with @Nina if I don’t reply within 2 working days.

Do you still need help with this? If so, add Debug.Logs to your code to see the value of pathfinder, previous and previous.exploredFrom during runtime.

Hi, don´t worry, I have solve it already! Thanks

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

Privacy & Terms