IEnumerator TwitchHandleForcedSolve() { while (_phraseActions[_selectedPhraseIx].ExpectedDigit != _phraseActions[_selectedPhraseIx].ShownDigit) { ButtonDown.OnInteract(); yield return(new WaitForSeconds(.1f)); } // Wait for the right time to hold the button while ((int)Bomb.GetTime() % 10 != _phraseActions[_selectedPhraseIx].Hold) { yield return(true); } ButtonScreen.OnInteract(); yield return(new WaitForSeconds(.1f)); // Wait for the right time to release the button while ((int)Bomb.GetTime() % 10 != _phraseActions[_selectedPhraseIx].Release) { yield return(true); } ButtonScreen.OnInteractEnded(); yield return(new WaitForSeconds(.1f)); }