Exemplo n.º 1
0
 private void OnGesturePerformed(InteractionGestureEventArgs ig)
 {
     _isLockedUntilNextJump[ig.PerformedGesture] = true;
     if (PerformedInteractionGesture != null)
     {
         PerformedInteractionGesture(ig);
     }
 }
Exemplo n.º 2
0
    private void PlayFixedAnimationsGestures(InteractionGestureEventArgs igArgs)
    {
        InteractionGesture performedGesture = igArgs.PerformedGesture;

        if (performedGesture == InteractionGesture.AssCombo)
        {
            //...
            //here you could play some animation depending on the gesture, e.g. an ass bomb, like it is performed in PlayFixedAnimationsState()
        }
    }
Exemplo n.º 3
0
 //react to trampolin gesture and state events (set strings)
 private void UpdateGestureText(InteractionGestureEventArgs ig)
 {
     _lastGestureText = ig.PerformedGesture.ToString();
 }