neb's idea is wayyy better

This commit is contained in:
JohnCorby 2021-11-17 02:36:28 -08:00
parent bd93ea92ba
commit 86684b10ad
2 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ namespace QSB.MeteorSync.Events
body.MoveToRotation(targetRot);
SetVelocity(body, targetVel);
body.SetAngularVelocity(targetAngVel);
}, 50);
}, 20);
}
}

View File

@ -11,15 +11,15 @@ namespace QSB.MeteorSync
protected override void RebuildWorldObjects(OWScene scene)
{
// wait a bit because meteors get created late
QSBCore.UnityEvents.FireInNUpdates(() =>
// wait for all late initializers (which includes meteor launchers) to finish
QSBCore.UnityEvents.RunWhen(() => LateInitializerManager.s_lateInitializers.Count == 0, () =>
{
WhiteHoleVolume = QSBWorldSync.GetUnityObjects<WhiteHoleVolume>().First();
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
QSBWorldSync.Init<QSBMeteor, MeteorController>();
QSBWorldSync.Init<QSBFragment, FragmentIntegrity>();
Ready = true;
}, 50);
});
}
}
}