예제 #1
0
        /// <summary>
        /// Калибровка точки
        /// </summary>
        /// <returns></returns>
        private IEnumerator CalibrateRD()
        {
            Debug.Log("Откалибруйте правую нижнюю точку");
            yield return(new WaitForSeconds(calibrationsTimer));

            buttonRectRD.Rectangle = new Rect(screenX, screenY, 30, 30);

            hsvState = hsvStateLast;
        }
예제 #2
0
        /// <summary>
        /// Калибровка точки
        /// </summary>
        /// <returns></returns>
        private IEnumerator CalibrateLU()
        {
            hsvStateLast = hsvState;
            hsvState     = DetectHsv.LaserHsv;

            Debug.Log("Откалибруйте левую верхнюю точку");
            yield return(new WaitForSeconds(calibrationsTimer));

            buttonRectLU.Rectangle = new Rect(screenX, screenY, 30, 30);
            StartCoroutine("CalibrateRU");
        }