// Update is called once per frame void Update() { if (Input.mousePosition.x > 416) { if (Input.GetMouseButtonDown(0)) { test.MoveCannon(); } } }