public override void Update(Elements.Enemy enemy, GameTime gameTime) { //enemy.ApplyGravity(); switch (direction) { case EDirection.Left: enemy.MoveX((int)direction); enemy.ClampX((int)direction); enemy.flip = SpriteEffects.None; break; case EDirection.Right: enemy.MoveX((int)direction); enemy.ClampX((int)direction); enemy.flip = SpriteEffects.FlipHorizontally; break; default: break; } }