IEnumerator Speaking(ISpeech speech) { Elements.DialoguePanel.SetActive(true); Elements.ApplySpeechSettings(speech.SpeechSettings); Elements.SpeakerText = speech.SpeakerName; previousSpeechText = Elements.SpeechText; textPresenter.Initialize(speech, speech.AdditiveSpeech ? previousSpeechText : string.Empty); textPresenter.Present(); while (textPresenter.IsPresenting) { if (skip) { textPresenter.Skip(); skip = false; } Elements.SpeechText = textPresenter.CurrentText; yield return(new WaitForSeconds(0.025f)); } Elements.SpeechText = textPresenter.CurrentText; StopSpeaking(); }
public string Present(IEnumerable <Election> Input) { return(String.Join("\n", Input.Select(E => m_ElectionPresenter.Present(E)))); }