Skip to content

Commit e98c477

Browse files
authored
Merge pull request #363 from keveleigh/KeywordManagerFix
Add a check to only process key bindings if the recognizer is listening
2 parents 97c6877 + 252114b commit e98c477

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/HoloToolkit/Input/Scripts/Voice/KeywordManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ void Start()
7171

7272
void Update()
7373
{
74-
ProcessKeyBindings();
74+
if (keywordRecognizer.IsRunning)
75+
{
76+
ProcessKeyBindings();
77+
}
7578
}
7679

7780
void OnDestroy()

0 commit comments

Comments
 (0)