mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
27 lines
648 B
C#
27 lines
648 B
C#
using QSB.TranslationSync.WorldObjects;
|
|
using QSB.WorldSync;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.TranslationSync
|
|
{
|
|
internal class SpiralManager : MonoBehaviour
|
|
{
|
|
public static SpiralManager Instance { get; private set; }
|
|
|
|
public void Awake()
|
|
{
|
|
Instance = this;
|
|
QSBSceneManager.OnUniverseSceneLoaded += OnSceneLoaded;
|
|
}
|
|
|
|
public void OnDestroy() => QSBSceneManager.OnUniverseSceneLoaded -= OnSceneLoaded;
|
|
|
|
private void OnSceneLoaded(OWScene scene)
|
|
{
|
|
QSBWorldSync.Init<QSBWallText, NomaiWallText>();
|
|
QSBWorldSync.Init<QSBComputer, NomaiComputer>();
|
|
QSBWorldSync.Init<QSBVesselComputer, NomaiVesselComputer>();
|
|
}
|
|
}
|
|
}
|