// Use this for initialization void Start() { sliderBrushSize = this.transform.Find("SliderBrushSize").GetComponent <Slider>(); sliderBrushSize.onValueChanged.AddListener( (value) => { painter.SetBrushSize(value); } ); }
public void UpdateSizeSlider() { painter.SetBrushSize(sizeSlider.value); }
public void onStart() { painter.SetBrushSize(sizeSlider.value * 10); painter.setVisualization(0); modes [0].Select(); }