2021-11-14 03:50:59 -08:00

27 lines
709 B
C#

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