public void RpcDraw() { if (currentStroke == null) { currentStroke = GenerateNewStroke(); } if (Vector3.Distance(virtualBrushPosition, lastVirtualBrushPosition) >= samplingRate) { currentStroke.AddStrokePoint(virtualBrushPosition); } }