void Awake() { _patrolStart = transform.position; _patrolToEnd = true; _chasingPlayer = false; _movementAI = new AStarPathfinding(); }
public SeekTask(IMovementAI movementAI, Enemy character, Vector2 seekLocation) { _movementAI = movementAI; _character = character; _seekTo = seekLocation; _movementPath = new List <Node>(); _started = false; _complete = false; }