2021-11-14 11:29:58 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using QSB.MeteorSync.WorldObjects;
|
2021-11-11 02:40:02 +00:00
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
|
|
|
|
|
namespace QSB.MeteorSync
|
|
|
|
|
{
|
|
|
|
|
public class MeteorManager : WorldObjectManager
|
|
|
|
|
{
|
2021-11-14 05:15:01 +00:00
|
|
|
|
public static bool Ready;
|
2021-11-14 11:29:58 +00:00
|
|
|
|
public static WhiteHoleVolume WhiteHoleVolume;
|
2021-11-11 02:40:02 +00:00
|
|
|
|
|
|
|
|
|
protected override void RebuildWorldObjects(OWScene scene)
|
|
|
|
|
{
|
|
|
|
|
// wait a bit because meteors get created late
|
|
|
|
|
QSBCore.UnityEvents.FireInNUpdates(() =>
|
|
|
|
|
{
|
2021-11-15 10:39:06 +00:00
|
|
|
|
WhiteHoleVolume = QSBWorldSync.GetUnityObjects<WhiteHoleVolume>().First();
|
2021-11-14 05:15:01 +00:00
|
|
|
|
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
|
2021-11-11 02:40:02 +00:00
|
|
|
|
QSBWorldSync.Init<QSBMeteor, MeteorController>();
|
2021-11-14 05:15:01 +00:00
|
|
|
|
QSBWorldSync.Init<QSBFragment, FragmentIntegrity>();
|
|
|
|
|
Ready = true;
|
2021-11-17 10:24:03 +00:00
|
|
|
|
}, 50);
|
2021-11-11 02:40:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|