SetBrushSize() public method

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