// Update is called once per frame void Update() { if (WaitingButtonClick || movement_control.IsMoving()) { return; } if (Input.GetMouseButtonDown(0)) // First left click { StartDrawing(); } else if (Input.GetMouseButton(0)) // Dragging mouse { InDrawing(); } else if (Input.GetMouseButtonUp(0)) // Release mouse { EndDrawing(); } }