public void loadKeywords() { sb = gameObject.GetComponent <SentenceBehaviour>(); keywords = sb.keywords; if (keywords != null) { recognizer = new KeywordRecognizer(keywords, confidence); recognizer.OnPhraseRecognized += Recognizer_OnPhraseRecognized; recognizer.Start(); } }
public void loadKeywords() { sb = gameObject.GetComponent <SentenceBehaviour>(); shuffledKeywords = sb.keywordsShuffled.ToArray(); }