Ejemplo n.º 1
0
 public override void Update(float dt)
 {
     base.Update(dt);
     // shake the screen
     ShakeScreen(dt);
     // scroll on using inertia
     if (Scroller != null)
     {
         Scroller.Update(dt);
     }
 }
Ejemplo n.º 2
0
 public override void Update(float dt)
 {
     base.Update(dt);
     if (!Pressed)
     {
         // scroll on using inertia
         Scroller.Update(dt);
         // slowly snap to the nearest node in the collection
         SnapToMiddleNode();
     }
 }
Ejemplo n.º 3
0
 public override void Update(float dt)
 {
     base.Update(dt);
     // scroll on using inertia
     Scroller.Update(dt);
 }