void ControlClicks() { if (Input.GetButtonDown("Fire1")) { if (Time.time - lastClickTime < catchTime) { interactionController.DoubleClick(); } else { interactionController.Click(); } lastClickTime = Time.time; } }