public static void speak(string msg, float delay = 0f) { if (delay == 0f) { Debug.Log("SPEAK: " + msg); } else { theVoice.ExecuteLater(delay, () => speak(msg)); } }
public void Speak(string msg, float delay = 0f) { if (delay == 0f) { addToSpeechQueue(msg); } else { StartCoroutine(instance.ExecuteLater(delay, () => Speak(msg))); } }
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)); } }
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)); } }