public static void NewWaveEvent(SceneObject Scene) { foreach (GameObject o in Scene.Children) { if (o.GetType().IsSubclassOf(typeof(BasicShipGameObject))) { BasicShipGameObject s = (BasicShipGameObject)o; s.NewWaveEvent(); } } LastTimedTeam = WaveManager.ActiveTeam; foreach (Faction f in Factions) { if (f.Team == WaveManager.ActiveTeam) { f.SurvivedMilliSeconds = 0; f.SurvivedMinutes = 0; f.SurvivedSeconds = 0; f.BestSurvivedWave = WaveManager.CurrentWave; f.MiningPlatformCounter += WaveManager.GameSpeed; if (f.MiningPlatformCounter >= f.MaxMiningPlatformCounter) { f.AddEvent("Mining Ring Ready!", new Color(0.5f, 0.5f, 1), FactionEvent.ReadyTexture); } } } }