public List <Vector2Int> GetPath(Vector2Int startPosition, Vector2Int targetPosition) { List <Vector2Int> allJumpPoints = _pathfinder.GetJumpPoints(startPosition, targetPosition); if (allJumpPoints == null) { return(null); } List <Vector2Int> jumpPointsToTarget = allJumpPoints.Skip(1).ToList(); return(jumpPointsToTarget); }