示例#1
0
    private Vector2 GetLineEnding(Cell cell)
    {
		if (_endPoint.HasValue)
		{
			// Use custom end point
			return _endPoint.Value;
		}
		else
		{
			// Line tail - Right middle point
			return new Vector2(cell.GetRectPoints().xMax, cell.Center.y);
		}
	}
示例#2
0
	private Vector2 GetLineStart(Cell cell)
    {
		if (_startPoint.HasValue)
		{
			// Use custom start point
			return _startPoint.Value;
		}
		else
		{
			// Line head - Left middle point
			return new Vector2(cell.GetRectPoints().xMin, cell.Center.y);
        }
    }