quantum-space-buddies/QSB/EyeOfTheUniverse/InstrumentSync/WorldObjects/QSBQuantumInstrument.cs
2023-07-28 19:30:57 +01:00

27 lines
685 B
C#

using QSB.EyeOfTheUniverse.MaskSync;
using QSB.WorldSync;
namespace QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
public class QSBQuantumInstrument : WorldObject<QuantumInstrument>
{
public void Gather()
{
var maskZoneController = QSBWorldSync.GetUnityObject<MaskZoneController>();
if (maskZoneController._maskInstrument == AttachedObject)
{
var shuttleController = QSBWorldSync.GetUnityObject<EyeShuttleController>();
foreach (var player in MaskManager.WentOnSolanumsWildRide)
{
player.SetVisible(true, 2);
}
maskZoneController._whiteSphere.SetActive(false);
shuttleController._maskObject.SetActive(true);
}
AttachedObject.Gather();
}
}