public void Close()
    {
        if (SpeechCanvas != null && ContainerObj != null)
        {
            ContainerObj.SetActive(false);

            SpeechCanvas.enabled = false;
        }
        SpeechEnded?.Invoke(true);
    }
Example #2
0
 private void OnSpeechEnded(SpeechEndedEventArgs e)
 {
     SpeechEnded?.Invoke(this, e);
 }
Example #3
0
 /// <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);
 }
Example #4
0
 protected void MediaElement_MediaEnded(object sender, RoutedEventArgs e)
 {
     _isSpeaking = false;
     SpeechEnded?.Invoke(this, EventArgs.Empty);
 }