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