private void OnTopicClientInput(Data data) { TopicClientData a_TopicClientData = (TopicClientData)data; if (a_TopicClientData == null || a_TopicClientData.TopicClient == null) { throw new WatsonException("TopicClient needs to be supported and can't be null."); } SensorManager = new SensorManager(a_TopicClientData.TopicClient); }
private void OnTopicClientInput(Data data) { TopicClientData a_TopicClientData = (TopicClientData)data; if (a_TopicClientData == null || a_TopicClientData.TopicClient == null) { throw new WatsonException("TopicClient needs to be supported and can't be null."); } GestureManager = new GestureManager(a_TopicClientData.TopicClient); GestureManager.AddGesture(this, m_Override); }
private void OnTopicClientInput(Data data) { TopicClientData a_TopicClientData = (TopicClientData)data; if (a_TopicClientData == null || a_TopicClientData.TopicClient == null) { throw new WatsonException("TopicClient needs to be supported and can't be null."); } if (TopicClient != null) { TopicClient.StateChangedEvent -= OnStateChanged; TopicClient.Unsubscribe("audio-out", OnAudioEvent); } TopicClient = a_TopicClientData.TopicClient; TopicClient.StateChangedEvent += OnStateChanged; TopicClient.Subscribe("audio-out", OnAudioEvent); }