File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Assets/HoloToolkit/Input/Scripts/Voice/Editor Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public override void OnInspectorGUI()
3333 }
3434 else
3535 {
36- SpeechInputHandler handler = this . target as SpeechInputHandler ;
36+ SpeechInputHandler handler = target as SpeechInputHandler ;
3737 string duplicateKeyword = handler . keywords . GroupBy ( keyword => keyword . Keyword . ToLower ( ) ) . Where ( group => group . Count ( ) > 1 ) . Select ( group => group . Key ) . FirstOrDefault ( ) ;
3838 if ( duplicateKeyword != null )
3939 {
@@ -51,8 +51,7 @@ private void ShowList(SerializedProperty list)
5151 EditorGUI . indentLevel ++ ;
5252
5353 // remove the keywords already assigned from the registered list
54- GameObject selectedObject = Selection . activeGameObject ;
55- SpeechInputHandler handler = this . target as SpeechInputHandler ;
54+ SpeechInputHandler handler = target as SpeechInputHandler ;
5655 string [ ] availableKeywords = registeredKeywords . Except ( handler . keywords . Select ( keywordAndResponse => keywordAndResponse . Keyword ) ) . ToArray ( ) ;
5756
5857 // keyword rows
You can’t perform that action at this time.
0 commit comments