/// <summary> /// Калибровка точки /// </summary> /// <returns></returns> private IEnumerator CalibrateRD() { Debug.Log("Откалибруйте правую нижнюю точку"); yield return(new WaitForSeconds(calibrationsTimer)); buttonRectRD.Rectangle = new Rect(screenX, screenY, 30, 30); hsvState = hsvStateLast; }
/// <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"); }