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