private void Update() { CameraControl(); if (Input.GetKeyDown(KeyCode.Alpha1)) { brush.splatChannel = 0; } if (Input.GetKeyDown(KeyCode.Alpha2)) { brush.splatChannel = 1; } if (Input.GetKeyDown(KeyCode.Alpha5)) { brush.splatChannel = 4; } if (RandomChannel) { brush.splatChannel = Random.Range(0, 2); } if (Input.GetMouseButton(0)) { if (!SingleShotClick || (SingleShotClick && !HoldingButtonDown)) { if (ClearOnClick) { PaintTarget.ClearAllPaint(); } PaintTarget.PaintCursor(brush); if (IndexBrush) { brush.splatIndex++; } } HoldingButtonDown = true; } else { HoldingButtonDown = false; } }
private void Update() { //CameraControl(); //if (Input.GetKeyDown(KeyCode.Alpha1)) brush.splatChannel = 0; //if (Input.GetKeyDown(KeyCode.Alpha2)) brush.splatChannel = 1; //if (Input.GetKeyDown(KeyCode.Alpha5)) brush.splatChannel = 4; //if (RandomChannel) brush.splatChannel = Random.Range(0, 2); if (Input.GetMouseButton(0)) { if (!HoldingButtonDown) { PaintTarget.PaintCursor(brush); } HoldingButtonDown = true; } else { HoldingButtonDown = false; } }