// Update is called once per frame void Update() { if (poseManager.IsNextGestureNuitrack()) { //countdownText.text = ""; } else { if (poseManager.IsCollectingData()) { //countdownText.color = captureColor; countdownText.text = (Time.time - poseManager.GetTimestamp()).ToString("0.00"); } else { //countdownText.color = countdownColor; countdownText.text = (Time.time - poseManager.GetTimestamp()).ToString("0.00"); } } }
void Update() { if (poseManager.IsNextGestureNuitrack()) { slider.value = 0.0f; img.color = captureColor; } else { if (poseManager.IsCollectingData()) { img.color = captureColor; slider.value = ((float)poseManager.GetFrameIndex()) / 90f; } else { img.color = countdownColor; slider.value = ((poseManager.GetTimestamp() + 3f) - Time.time) / 3f; } } }