public SpeechRecognition(SpeechInput speechInput) { if (speechInput.Mapping == null) throw new Exception("The given mapping must not be null"); this.speechInput = speechInput; InitSpeechRecognition(); }
public SpeechRecognition(SpeechInput speechInput) { if (speechInput.Mapping == null) { throw new Exception("The given mapping must not be null"); } this.speechInput = speechInput; InitSpeechRecognition(); }
void Awake() { speechInput = FindObjectOfType <SpeechInput>(); }