#pragma warning restore 414 public IEnumerator ProcessTwitchCommand(string command) { if (_solved) { yield break; } command = command.Trim(); if (!_dalmatians.Contains(command, StringComparer.InvariantCultureIgnoreCase)) { yield break; } yield return(null); if (!_dalmatians[_curDalmatianIndex].Equals(command, StringComparison.InvariantCultureIgnoreCase)) { RightArrow.OnInteract(); while (!_dalmatians[_curDalmatianIndex].Equals(command, StringComparison.InvariantCultureIgnoreCase)) { yield return("trycancel"); } RightArrow.OnInteractEnded(); yield return(new WaitForSeconds(.6f)); } yield return(new[] { Submit }); }
IEnumerator TwitchHandleForcedSolve() { RightArrow.OnInteract(); while (_curDalmatianIndex != _solution) { yield return(null); } RightArrow.OnInteractEnded(); yield return(new WaitForSeconds(.1f)); Submit.OnInteract(); yield return(new WaitForSeconds(.1f)); }