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