quantum-space-buddies/QSB/MeteorSync/MeteorManager.cs

23 lines
553 B
C#
Raw Normal View History

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