mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
neb's idea is wayyy better
This commit is contained in:
parent
bd93ea92ba
commit
86684b10ad
@ -91,7 +91,7 @@ namespace QSB.MeteorSync.Events
|
||||
body.MoveToRotation(targetRot);
|
||||
SetVelocity(body, targetVel);
|
||||
body.SetAngularVelocity(targetAngVel);
|
||||
}, 50);
|
||||
}, 20);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user