public void SetColor(Color color)
 {
     PaintParams = TexturePaintParams.MakeWithColor(color, (int)_brushSizeSlider.value);
 }
 public void HandleBrushSizeSliderValueChanged()
 {
     PaintParams = TexturePaintParams.MakeWithColor(PaintParams.color, (int)_brushSizeSlider.value);
 }
 // The handlers below are set via onclick events on the prefab.
 public void SetBrush()
 {
     PaintParams = TexturePaintParams.MakeWithColor(_colorPicker.CurrentColor, (int)_brushSizeSlider.value);
 }