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