22 lines
497 B
C#
Raw Normal View History

2021-11-10 18:40:02 -08:00
using QSB.MeteorSync.WorldObjects;
using QSB.WorldSync;
namespace QSB.MeteorSync
{
public class MeteorManager : WorldObjectManager
{
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>();
MeteorsReady = true;
2021-11-10 18:40:02 -08:00
}, 10);
}
}
}