public void checkByVoice() { speechToText.ListenAndScore(answer, (_score) => { score.text = _score.ToString(); if (_score > 0.5f) { avgTime = (timer.getCurrentTime() + avgTime) / 2; rightSFX.Play(); correct = true; StartCoroutine(timer.resetTimer()); timer.changeQueued = true; points++; StartCoroutine(correctText()); voiceClips[getIndex()].Play(1); StartCoroutine(sitTight()); } else { wrongSFX.Play(); correct = false; score.text = "Wrong"; } }); }