private void UpdateHandWave(KinectController kinect) { if (handWaveController.IsActivated) { if (handWaveController.IsPassing) { handWaveController.Deactivate(); isMoving = true; UpdateInstruction(noInstructionText); } else { WindowsKinect.Body body = kinect.PlayerSkeleton; handWaveController.Set( body.GetPosition(WindowsKinect.JointType.HandLeft), body.GetPosition(WindowsKinect.JointType.HandRight), body.GetPosition(WindowsKinect.JointType.ElbowLeft), body.GetPosition(WindowsKinect.JointType.ElbowRight)); } } }