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