private static void UpdateWaves() { if (enemies.Count == 0) { waveNumber++; for (int i = 0; i < rand.Next(3, 3 + waveNumber); i++) { NewShip(); } DropManager.EndOfWaveDrop(); } if (bombShipCooldown <= 0) { int bombShipCount = 0; for (int i = 0; i < enemies.Count; i++) { if (enemies[i] is Bombship) { bombShipCount++; } } if (bombShipCount < 4) { NewBombShip(); bombShipCooldown = rand.Next(3, 10); } } else { bombShipCooldown -= GameManager.DeltaTime; } }