void Update () { brushColor = ColorPicker.GetColor (); //Updates our painted color with the selected color if (Input.GetMouseButton(0)) { DoAction(); } UpdateBrushCursor (); }