AStar AI not following continously (FIXED)

Hello,

I’ve been trying to have my monsters follow my character using AStar.
I managed to get the monsters following me when I start the play game scene,
but whenever they stand still they won’t follow me again.
It’s like this at the moment: If I keep moving, they will move.
But if I stand still for a short time and they are near me,
, they will stand still on the middle of the position of nextNode.

That’s what I expect them to do. But whenever I move again,
I expect my monster to follow me again even if he stood still.
So I try to run my AStar again. But here is the problem,
I can’t seem to set my Start/Current node (the first steps).
And without my start and current node AStar can’t run.

I tried setting my start and current node manually by calling the SetStartNode() when I press a key.
But whenever I call this method, start won’t be set and I get a log that says: “Start = null”.
I also tried dragging my start/current node in the correct slot. (then it isn’t null anymore)
But in this case, the start node won’t be added to the open list and I’ll get an error.

Besides this, the goal node isn’t acting like expected.
Goal is set, even when my RunAStar() isn’t running anymore.
So whenever I click on goal it brings me to the tile the last time the player was standing on when ResetStuff() was called.
After my monsters are standing still, goal will only be updated when I call ResetStuff();

Is there someone here that can tell me what I’m doing wrong?
I need to find a way to set my Start/Current nodes correctly, so they won’t be null and I can run my
AStar again, even when the monsters where standing still.

AStar code: using UnityEngine;using System.Collections.Generic;using System;public c - Pastebin.com
Monster code: using UnityEngine;using System.Collections;public class Zombie : MonoBehav - Pastebin.com
Video:
https://www.youtube.com/watch?v=Fu87uuGDTxw

Fixed it, changed the code a thousand times.