Need help not sure what to do.

So im new to this and i got a problem and not sure what part of the code is wrong. Been doing everything by a youtube tutorial. Well it launches everything fine but when i press the movement keys in every direction i get the error which is shown in the console. Photos in imgur: Imgur: The magic of the Internet

Better to post code here with code tags and you can attach screenshots here as well.

Now, simply put, something is null on the line it references. Probably currentNode is null would be my guess. But it could also be currentNode.neighbors. So, you need to check those to see that they actually do have a value. Make sure you didn’t miss a step in the tutorial.

Either currentNode or currentNode.neighbors is null. Can’t tell which because you didn’t post any of the code where anything is assigned to those. Figure out why those may be null, use Debug.Log, etc, and when you figure it out then make them not null.