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