2021-11-11 02:40:02 +00:00
|
|
|
|
using QSB.MeteorSync.WorldObjects;
|
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
|
|
|
|
|
namespace QSB.MeteorSync
|
|
|
|
|
{
|
|
|
|
|
public class MeteorManager : WorldObjectManager
|
|
|
|
|
{
|
2021-11-11 05:59:32 +00:00
|
|
|
|
public static bool MeteorsReady;
|
2021-11-11 02:40:02 +00:00
|
|
|
|
|
|
|
|
|
protected override void RebuildWorldObjects(OWScene scene)
|
|
|
|
|
{
|
2021-11-11 05:13:49 +00:00
|
|
|
|
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
|
2021-11-14 00:57:06 +00:00
|
|
|
|
QSBWorldSync.Init<QSBFragment, FragmentIntegrity>();
|
2021-11-11 02:40:02 +00:00
|
|
|
|
// wait a bit because meteors get created late
|
|
|
|
|
QSBCore.UnityEvents.FireInNUpdates(() =>
|
|
|
|
|
{
|
|
|
|
|
QSBWorldSync.Init<QSBMeteor, MeteorController>();
|
2021-11-11 05:59:32 +00:00
|
|
|
|
MeteorsReady = true;
|
2021-11-11 02:40:02 +00:00
|
|
|
|
}, 10);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|