示例#1
0
    void TryFinishStroke()
    {
        if (!_isDrawing)
        {
            return;
        }

        if (GestureRecognizer.IsDot(_currentStroke))
        {
            _currentStroke.ConvertToPoint(_strokeDotRadius);
        }

        _lastTouch = Time.time;
        _strokes.Add(_currentStroke);
        _currentStroke = null;
    }