// Update is called once per frame void Update() { if (gestureListener) { if (gestureListener.IsSwipeLeft()) { PlayerController.instance.MoveRight(); Debug.Log("Kinect动作识别后左移"); } if (gestureListener.IsSwipeRight()) { PlayerController.instance.MoveLeft(); Debug.Log("Kinect动作识别后右移"); } if (gestureListener.IsJumpUp()) { PlayerController.instance.JumpUp(); Debug.Log("Kinect动作识别后跳跃"); } } }