mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
26 lines
688 B
C#
26 lines
688 B
C#
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<WhiteHoleVolume>().First();
|
|
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
|
|
QSBWorldSync.Init<QSBMeteor, MeteorController>();
|
|
QSBWorldSync.Init<QSBFragment, FragmentIntegrity>();
|
|
Ready = true;
|
|
}, 10);
|
|
}
|
|
}
|
|
}
|