mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 03:28:26 +00:00
27 lines
685 B
C#
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();
|
|
}
|
|
}
|