Пример #1
0
 void Game_OnEventStopRecognized(EventStopRecognizedEventArgs gca)
 {
     foreach (KinectEvent Event in gca.Events)
     {
         if (Event.Type == KEvents.Pose)
         {
             //Stop showng Right swort casting animation
             if ((Event.Value == "s1"))
             {
                 startcastingRight = false;
             }
             //Stop showng Left swort casting animation
             if ((Event.Value == "sl1"))
             {
                 startcastingLeft = false;
             }
         }
     }
 }
Пример #2
0
        void Game_OnEventStopRecognized(EventStopRecognizedEventArgs gca)
        {
            foreach (KinectEvent Event in gca.Events)
            {
                if (Event.Type == KEvents.Pose)
                {
                    //Stop showng Right swort casting animation
                    if ((Event.Value == "s1"))
                    {
                        startcastingRight = false;
                    }
                    //Stop showng Left swort casting animation
                    if ((Event.Value == "sl1"))
                    {
                        startcastingLeft = false;
                    }
                }

            }
        }