private void ExectueGestureCancel(KinectGestures.Gestures gestures) { if (gestures == KinectGestures.Gestures.Wheel && IsWheeling) { BeginImage(); } Debug.Log("Gesture Cancel " + gestures.ToString()); }
public bool GestureCompleted(uint userId, int userIndex, KinectGestures.Gestures gesture, KinectWrapper.NuiSkeletonPositionIndex joint, Vector3 screenPos) { string sGestureText = gesture.ToString() + " detected"; if (gesture == KinectGestures.Gestures.Click) { sGestureText += string.Format(" at ({0:F1}, {1:F1})", screenPos.x, screenPos.y); } if (GestureInfo != null) { GestureInfo.GetComponent <GUIText>().text = sGestureText; } //ほのお if (gesture == KinectGestures.Gestures.Psi || gesture == KinectGestures.Gestures.RaiseLeftHand || gesture == KinectGestures.Gestures.RaiseRightHand) { this.GenerateFire(gesture); } //水 if (gesture == KinectGestures.Gestures.SwipeLeft || gesture == KinectGestures.Gestures.SwipeRight) { this.GenerateWater(gesture); } //ビーム if (gesture == KinectGestures.Gestures.Push) { this.GenerateBeam(); } //惑星 if (gesture == KinectGestures.Gestures.SwipeUp) { this.GeneratePlanet(joint); } //jointを確かめるだけ //Debug.Log("joint : "+joint+" Gesture : "+sGestureText); progressDisplayed = false; return(true); }