Exemplo n.º 1
0
 /*
  * Called when the user swipes with one finger or the mouse
  */
 public void OnSwipe(object sender, SwipeEventArgs e)
 {
     if (e.SwipeDirection == "left")                     // you swipe left
     {
         RandomAnimation("right", 0.5f);                 // she turns to her right (your left)
     }
     else if (e.SwipeDirection == "right")               // you swip right
     {
         RandomAnimation("left", 0.5f);                  // she turns to her left (your right)
     }
     else if (e.SwipeDirection == "up")                  // you swipe up
     {
         RandomAnimation("front", 0.5f);                 // she walks the catwalk
     }
     else
     {
         RandomAnimation("idle", 0.5f);
     }
 }