// Make sure to kill the Kinect on quitting.
 void OnApplicationQuit()
 {
     if (KinectInitialized)
     {
         // Shutdown OpenNI
         KinectWrapper.NuiShutdown();
     }
 }
Example #2
0
 public void OnApplicationQuit()
 {
     if (KinectInitialized)
     {
         KinectWrapper.NuiShutdown();
         instance = null;
     }
 }
Example #3
0
 // Make sure to kill the Kinect on quitting.
 void OnApplicationQuit()
 {
     if (_kinectInitialized)
     {
         // Shutdown OpenNI
         KinectWrapper.NuiShutdown();
         Instance = null;
     }
 }