quantum-space-buddies/QSB/MeteorSync/MeteorManager.cs
JohnCorby 66d1f2bed9 oops
2021-11-13 00:11:07 -08:00

22 lines
497 B
C#

using QSB.MeteorSync.WorldObjects;
using QSB.WorldSync;
namespace QSB.MeteorSync
{
public class MeteorManager : WorldObjectManager
{
public static bool MeteorsReady;
protected override void RebuildWorldObjects(OWScene scene)
{
QSBWorldSync.Init<QSBMeteorLauncher, MeteorLauncher>();
// wait a bit because meteors get created late
QSBCore.UnityEvents.FireInNUpdates(() =>
{
QSBWorldSync.Init<QSBMeteor, MeteorController>();
MeteorsReady = true;
}, 10);
}
}
}