private void MoveFlipper(Flipper flipper, FlipperDirection direction) { switch (direction) { case FlipperDirection.Up: flipper.Up(); break; case FlipperDirection.Down: flipper.Down(); break; } }