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