public void Close() { if (SpeechCanvas != null && ContainerObj != null) { ContainerObj.SetActive(false); SpeechCanvas.enabled = false; } SpeechEnded?.Invoke(true); }
private void OnSpeechEnded(SpeechEndedEventArgs e) { SpeechEnded?.Invoke(this, e); }
/// <summary> /// Medias the player media ended. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The arguments.</param> private void MediaPlayer_MediaEnded(MediaPlayer sender, object args) { SpeechEnded?.Invoke(this, null); }
protected void MediaElement_MediaEnded(object sender, RoutedEventArgs e) { _isSpeaking = false; SpeechEnded?.Invoke(this, EventArgs.Empty); }