Kinect.KinectManager.OnDestroy C# (CSharp) Method

OnDestroy() public method

public OnDestroy ( ) : void
return void
        void OnDestroy()
        {
            //Debug.Log("KM was destroyed");

            // shut down the Kinect on quitting.
            if (kinectInitialized)
            {
                KinectInterop.CloseSensor(sensorData);

                //			KinectInterop.ShutdownKinectSensor();

                instance = null;
            }
        }
KinectManager