コード例 #1
0
ファイル: Navigator.cs プロジェクト: azsdaja/7drl-2018
        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);
        }