Beispiel #1
0
 void OnEnable()
 {
     if (theVoice == null)
     {
         theVoice = this;
         Debug.Log("Initializing speech");
         initSpeech();
     }
 }
Beispiel #2
0
 void OnDestroy()
 {
     if (theVoice == this)
     {
         Debug.Log("Destroying speech");
         destroySpeech();
         theVoice = null;
     }
 }
Beispiel #3
0
 public void TestSpeech()
 {
     Narrator.speak("Do you hear me?", false);
 }
Beispiel #4
0
 private void OnApplicationQuit()
 {
     Narrator.destroySpeech();
 }