void Update() { if (Input.GetMouseButtonDown(0)) { Down = true; Puppeteer.OnDown(Input.mousePosition); } else if (Input.GetMouseButtonUp(0)) { Down = false; Puppeteer.OnUp(Input.mousePosition); } else if (Down && Input.GetMouseButton(0)) { Puppeteer.OnDrag(Input.mousePosition); } }