Beispiel #1
0
    private void FindNextPoint()
    {
        nextPoint = lastPoint.path.FindNextPoint(lastPoint, searchTarget, resources);

        if (nextPoint != null)
        {
            currentPosition.segment = lastPoint.GetSegmentToPoint(nextPoint);
            if (lastPoint == currentPosition.segment.point1)
            {
                currentPosition.offset = 0;
            }
            else
            {
                currentPosition.offset = 1;
            }
        }
    }