/// <summary> /// Notification callback for getting messages from the clients. /// </summary> /// <param name="message"></param> public void Notify(string message) { ClientMessage settings = JsonConvert.DeserializeObject <ClientMessage>(message); KinectAudioHandler.Initialize(KinectHandler.Instance().SensorChooser.Kinect, settings.Contents); //TODO: You can add more code here for notifying more components using client-side messages properly. }
public static KinectHandler Instance() { if (_kinectHandler == null) { _kinectHandler = new KinectHandler(); } return(_kinectHandler); }