Esempio n. 1
0
    private void CleanUpLasso()
    {
        method = LassoMethod.None;
        lineRenderer.positionCount = 0;
        isDrawing = false;

        AllowOtherInput();
    }
Esempio n. 2
0
    private void StartLasso(LassoMethod newMethod)
    {
        DisallowOtherInput();

        isDrawing = true;
        method    = newMethod;

        firstPoint = thirdLastPoint = secondLastPoint = Input.mousePosition;
        lineRenderer.positionCount = 0;
        info.points.Clear();

        AddPoint();
        AddPoint();
    }