コード例 #1
0
 void Close()
 {
     if (FStarted)
     {
         if (FUserGenerator != null)
         {
             FUserGenerator.Dispose();
         }
         FUserGenerator = null;
         FStarted       = false;
     }
 }
コード例 #2
0
        private void CleanUp()
        {
            if (FUserGenerator != null)
            {
                FUserGenerator.StopGenerating();

                FSkeletonCapability.CalibrationComplete -= skeletonCapbility_CalibrationComplete;
                FPoseDetectionCapability.PoseDetected   -= poseDetectionCapability_PoseDetected;
                FUserGenerator.LostUser -= userGenerator_LostUser;
                FUserGenerator.NewUser  -= userGenerator_NewUser;

                FUserGenerator.Dispose();
                FUserGenerator = null;

                FJoints = null;
            }
        }