using QSB.MeteorSync.WorldObjects; using QSB.WorldSync; using System.Linq; namespace QSB.MeteorSync { public class MeteorManager : WorldObjectManager { public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem; public static WhiteHoleVolume WhiteHoleVolume; protected override void RebuildWorldObjects(OWScene scene) { // wait for all late initializers (which includes meteor launchers) to finish StartDelayedReady(); QSBCore.UnityEvents.RunWhen(() => LateInitializerManager.s_lateInitializers.Count == 0, () => { FinishDelayedReady(); WhiteHoleVolume = QSBWorldSync.GetUnityObjects().First(); QSBWorldSync.Init(); QSBWorldSync.Init(); QSBWorldSync.Init(); }); } } }