// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.P)) { Debug.Log("Reset Kinect"); /******************** * kinectは、quit後にすぐAwakeすると、Hardがついてこれなかった. * 1.0秒後にAwake()させる. ********************/ enabled = false; KinectManager.OnApplicationQuit(); Invoke("RestartKinect", 1.0f); } }