Example #1
0
 public void SetMode()
 {
     if (GetComponent <Toggle>().isOn)
     {
         mobilePaint.SetDrawModeBrush();
     }
 }
Example #2
0
 public void SetMode()
 {
     if (GetComponent <Toggle> ().isOn)
     {
         brushUI.color = brushUIColor;
         mobilePaint.SetDrawModeBrush();
     }
     else
     {
         brushUI.color = brushDisabledColor;
     }
 }