private void DoCalibratingWithoutMove() { timeCalibratingWithoutMove += Time.deltaTime; statusText.text = string.Format("Calibrating Kinect Coordinate System\nTime left: {0:0.0}", timeToCalibrate - timeCalibratingWithoutMove); if (timeCalibratingWithoutMove >= timeToCalibrate) { currentState = State.CalibrationReview; coordinateSystem.SetMoveToKinectTransforms(Matrix4x4.identity, Matrix4x4.identity); coordinateSystem.SetKinectFloorNormal(floorNormal); coordinateSystem.SaveXML(xmlFilename); return; } UpdateFloorNormal(); }