void updateShip() { switch (shipState) { case state.stopped: break; case state.movingleft: player.LeftRight(shipState); break; case state.movingright: player.LeftRight(shipState); break; case state.shooting: if (firingInterval > 15) { b = new Bullet(space, player.actualX, 50, Convert.ToString(noBull), true); noBull++; bullets.Add(b); firingInterval = 0; playSound("bullet"); } break; } }