Пример #1
0
        private void speakNativeCompleteMethod(object sender, SpeakNativeEventArgs e)
        {
            if (e.Wrapper.Uid.Equals(uidSpeakerA))
            {
                Debug.Log("Speaker A - Speech complete: " + e);
                TextSpeakerA.text   = e.Wrapper.Text;
                VisemeSpeakerA.text = PhonemeSpeakerA.text = "-";
                SpeakerB();
            }
            else if (e.Wrapper.Uid.Equals(uidSpeakerB))
            {
                Debug.Log("Speaker B - Speech complete: " + e);
                TextSpeakerB.text   = e.Wrapper.Text;
                VisemeSpeakerB.text = PhonemeSpeakerB.text = "-";

                SpeakerC();
                //Invoke("Silence", 3f);
            }
            else if (e.Wrapper.Uid.Equals(uidSpeakerC))
            {
                Debug.Log("Speaker C - Speech complete: " + e);
                TextSpeakerC.text   = e.Wrapper.Text;
                VisemeSpeakerC.text = PhonemeSpeakerC.text = "-";
            }
            else
            {
                Debug.LogWarning("Unknown speaker: " + e);
            }
        }
Пример #2
0
 private void speakNativeStartMethod(object sender, SpeakNativeEventArgs e)
 {
     if (e.Wrapper.Uid.Equals(uidSpeakerA))
     {
         //Debug.Log("Speaker A - Speech start: " + e);
     }
     else if (e.Wrapper.Uid.Equals(uidSpeakerB))
     {
         //Debug.Log("Speaker B - Speech start: " + e);
     }
     else
     {
         Debug.LogWarning("Unknown speaker: " + e);
     }
 }
Пример #3
0
 private void SpeakerCompleted(object sender, SpeakNativeEventArgs e)
 {
     _activeSpeakerCount--;
 }
Пример #4
0
 private void SpeakerStart(object sender, SpeakNativeEventArgs e)
 {
     _activeSpeakerCount++;
 }
        private void stop(object sender, SpeakNativeEventArgs e)
        {
            Debug.Log("Stop your animations from the event: " + e);

            //Here belongs your stuff, like animations
        }
        private void play(object sender, SpeakNativeEventArgs e)
        {
            Debug.Log("Play your animations to the event: " + e);

            //Here belongs your stuff, like animations
        }