/// <summary>
    /// Paint method that send the position data to the brush to update the draw.
    /// </summary>
    /// <param name="position">Position of the pinch detector.</param>
    private void Paint(Vector3 position)
    {
        // Validate if the current point was already added.
        if (Mathf.Approximately(position.magnitude, previousPosition.magnitude))
        {
            return;
        }

        // Validate if there is a current brush to paint.
        if (string.IsNullOrEmpty(currentBrush))
        {
            currentBrush = brushPlayer.currentBrush;
            return;
        }

        // Call the Command method to execute this in the server.
        brushPlayer.CmdEmitPosition(currentBrush, position);

        previousPosition = position;
    }