Beispiel #1
0
        /// <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.
        }
Beispiel #2
0
 public static KinectHandler Instance()
 {
     if (_kinectHandler == null)
     {
         _kinectHandler = new KinectHandler();
     }
     return(_kinectHandler);
 }