void Game_OnEventRecognized(EventRecognizedEventArgs gca) { foreach (KinectEvent Event in gca.Events) { if (Event.Type == KEvents.Gesture) { // Activate Right hand swort if (Event.Value == "s11") { swortRight = true; } // Activate Left hand swort if (Event.Value == "sl11") { swortLeft = true; } } if (Event.Type == KEvents.Pose) { if (Event.Value == "s1") { //Show Right swort casting animation startcastingRight = true; //Hide swort if it was active swortRight = false; } if (Event.Value == "sl1") { //Show Left swort casting animation startcastingLeft = true; //Hide swort if it was active swortLeft = false; } } } }
void Game_OnEventRecognized(EventRecognizedEventArgs gca) { foreach (KinectEvent Event in gca.Events) { if (Event.Type == KEvents.Gesture) { // Activate Right hand swort if (Event.Value == "s11") swortRight = true; // Activate Left hand swort if (Event.Value == "sl11") swortLeft = true; } if (Event.Type == KEvents.Pose) { if (Event.Value == "s1") { //Show Right swort casting animation startcastingRight = true; //Hide swort if it was active swortRight = false; } if (Event.Value == "sl1") { //Show Left swort casting animation startcastingLeft = true; //Hide swort if it was active swortLeft = false; } } } }