Beispiel #1
0
 void Update()
 {
     if (easyWebCamInterface != null && EasyWebCamBase.isRunning)
     {
         easyWebCamInterface.UpdateImage();
         if (Input.GetMouseButtonDown(0))
         {
             setFocusMode(FocusMode.AutoFocus);
         }
     }
 }
Beispiel #2
0
 void Update()
 {
     if (easyWebCamInterface != null && EasyWebCamBase.isRunning)
     {
         easyWebCamInterface.UpdateImage();
         if (Input.GetMouseButtonDown(0))
         {
             if (isDoubleClick())
             {
                 Debug.Log("current double clicked is enter !");
                 setFocusMode(FocusMode.TapToFocus);
             }
         }
     }
 }