void OnDestroy() { Debug.Log("OnDestroy"); #if UNITY_IPHONE SpeechNativePlugin._release(); #endif }
// Start is called before the first frame update void Start() { #if UNITY_IPHONE SpeechNativePlugin._init(); SpeechNativePlugin._listenWithCallback(OnTextRecognized); #endif }