Пример #1
0
 void ControlClicks()
 {
     if (Input.GetButtonDown("Fire1"))
     {
         if (Time.time - lastClickTime < catchTime)
         {
             interactionController.DoubleClick();
         }
         else
         {
             interactionController.Click();
         }
         lastClickTime = Time.time;
     }
 }