mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
Just use the base game white hole
This commit is contained in:
parent
f58bd7ad7c
commit
d74b766366
@ -17,9 +17,9 @@ public class MeteorManager : WorldObjectManager
|
||||
// wait for all late initializers (which includes meteor launchers) to finish
|
||||
await UniTask.WaitUntil(() => LateInitializerManager.isDoneInitializing, cancellationToken: ct);
|
||||
|
||||
// NH can make multiple so fuck it just choose one
|
||||
// TODO: do GameObject.Find here instead
|
||||
WhiteHoleVolume = QSBWorldSync.GetUnityObjects<WhiteHoleVolume>().First();
|
||||
// NH can make multiple so ensure its the stock whitehole
|
||||
var whiteHole = QSBWorldSync.GetUnityObjects<AstroObject>().First(x => x.GetAstroObjectName() == AstroObject.Name.WhiteHole);
|
||||
WhiteHoleVolume = whiteHole?.GetComponentInChildren<WhiteHoleVolume>();
|
||||
QSBWorldSync.Init<QSBFragment, FragmentIntegrity>();
|
||||
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
|
||||
QSBWorldSync.Init<QSBMeteor, MeteorController>();
|
||||
|
Loading…
Reference in New Issue
Block a user