mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
32 lines
849 B
C#
32 lines
849 B
C#
using UnityEngine;
|
|
|
|
namespace QSB.GeyserSync
|
|
{
|
|
public class GeyserManager : MonoBehaviour
|
|
{
|
|
public static GeyserManager Instance { get; private set; }
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
|
|
LoadManager.OnCompleteSceneLoad += OnCompleteSceneLoad;
|
|
}
|
|
|
|
private void OnCompleteSceneLoad(OWScene oldScene, OWScene newScene)
|
|
{
|
|
var geyserControllers = Resources.FindObjectsOfTypeAll<GeyserController>();
|
|
for (var id = 0; id < geyserControllers.Length; id++)
|
|
{
|
|
var geyser = new QSBGeyser();
|
|
geyser.Init(geyserControllers[id], id);
|
|
}
|
|
}
|
|
|
|
public void EmptyUpdate()
|
|
{
|
|
QSB.Helper.HarmonyHelper.EmptyMethod<GeyserController>("Update");
|
|
}
|
|
|
|
}
|
|
} |