public void SetMode()
 {
     if (GetComponent <Toggle>().isOn)
     {
         mobilePaint.SetDrawModeEraser();
     }
 }
 public void SetMode()
 {
     if (GetComponent <Toggle> ().isOn)
     {
         mobilePaint.SetDrawModeEraser();
         changeColorButton.SetActive(false);
         eraserUI.color = eraserUIColor;
     }
     else
     {
         eraserUI.color = eraserDisabledColor;
         changeColorButton.SetActive(true);
     }
 }