void OnDestroy()
        {
#if UNITY_STANDALONE_WIN
            if (theVoice == this)
            {
                Debug.Log("Tasc:Narrator - Destroying speech");
                destroySpeech();
                theVoice = null;
            }
#endif
        }
        void OnEnable()
        {
#if UNITY_STANDALONE_WIN
            if (theVoice == null)
            {
                theVoice = this;
                Debug.Log("Tasc:Narrator - Initializing speech");
                initSpeech();
            }
#endif
        }
 public void TestSpeech()
 {
     VoiceInterface.Speak("Do you hear me?", false);
 }
 public override void Transfer(string msg)
 {
     VoiceInterface.Speak(msg, false);
 }
        private void OnApplicationQuit()
        {
#if UNITY_STANDALONE_WIN
            VoiceInterface.destroySpeech();
#endif
        }
Beispiel #6
0
 public override void SetInformation(string msg)
 {
     VoiceInterface.Speak(msg, false);
 }