mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 19:11:32 +00:00
23 lines
529 B
C#
23 lines
529 B
C#
using QSB.MeteorSync.WorldObjects;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.MeteorSync
|
|
{
|
|
/// we have to do this fake bs
|
|
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);
|
|
}
|
|
}
|
|
}
|