示例#1
0
 public static void speak(string msg, float delay = 0f)
 {
     if (delay == 0f)
     {
         Debug.Log("SPEAK: " + msg);
     }
     else
     {
         theVoice.ExecuteLater(delay, () => speak(msg));
     }
 }
示例#2
0
 public void Speak(string msg, float delay = 0f)
 {
     if (delay == 0f)
     {
         addToSpeechQueue(msg);
     }
     else
     {
         StartCoroutine(instance.ExecuteLater(delay, () => Speak(msg)));
     }
 }
示例#3
0
 public static void speak(string msg, float delay = 0f)
 {
     if (delay == 0f)
     {
         if (theVoice.DebugOutput != null)
         {
             theVoice.DebugOutput.text = msg;
         }
         else
         {
             Debug.Log("SPEAK: " + msg);
         }
     }
     else
     {
         theVoice.ExecuteLater(delay, () => speak(msg));
     }
 }
示例#4
0
    public static void speak(string msg, float delay = 0f)
    {
        if (Timeline.theTimeline.QReprocessingEvents)
        {
            return;
        }

        if (delay == 0f)
        {
            if (theVoice.DebugOutput != null)
            {
                theVoice.DebugOutput.text = msg;
            }
            else
            {
                Debug.Log("SPEAK: " + msg);
            }
        }
        else
        {
            theVoice.ExecuteLater(delay, () => speak(msg));
        }
    }