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

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