public void Dispose() { if (_leftHand != null) { _detector.UnRegisterGesture(_leftHand); } if (_rightHand != null) { _detector.UnRegisterGesture(_rightHand); } if (_leftHandClosed != null) { _detector.UnRegisterGesture(_leftHandClosed); } if (_rightHandClosed != null) { _detector.UnRegisterGesture(_rightHandClosed); } }