public void Update(GameTime gameTime) { if (!start) { L1.Update(); L2.Update(); L3.Update(); } if (!start && Keyboard.GetState().IsKeyDown(Keys.Enter)) { start = true; } if (hasLost) { start = false; if (Keyboard.GetState().IsKeyDown(Keys.Enter)) { hasLost = false; Player.energy = 3; CreateLevel(); } } if (!songstart && start && !hasLost) { MediaPlayer.Play(brinstar); songstart = true; } foreach (SuperClass g in gameObjs) { if (g != null) { g.Update(gameTime); } } foreach (Bubble bub in gameObjList.OfType <Bubble>()) { bub.Update(gameTime); if (!bub.IsActive) { break; } } }