mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
22 lines
497 B
C#
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);
|
|
}
|
|
}
|
|
}
|