using System.Linq; using QSB.MeteorSync.WorldObjects; using QSB.WorldSync; namespace QSB.MeteorSync { public class MeteorManager : WorldObjectManager { public static bool Ready; public static WhiteHoleVolume WhiteHoleVolume; protected override void RebuildWorldObjects(OWScene scene) { // wait a bit because meteors get created late QSBCore.UnityEvents.FireInNUpdates(() => { WhiteHoleVolume = QSBWorldSync.GetUnityObjects().First(); QSBWorldSync.Init(); QSBWorldSync.Init(); QSBWorldSync.Init(); Ready = true; }, 50); } } }