コード例 #1
0
        IEnumerator StartCapturing()
        {
            yield return(new WaitForSeconds(.1f));

            CamCommunicator.StartCapturing();
            shouldCapture = true;
            isCapturing   = true;
        }
コード例 #2
0
 void Update()
 {
     if (shouldCapture && !isCapturing)
     {
         CamCommunicator.StartCapturing();
         isCapturing = true;
     }
     if (!shouldCapture && isCapturing)
     {
         CamCommunicator.EndCapturing();
         isCapturing = false;
     }
 }