27 lines
685 B
C#
Raw Normal View History

2022-01-15 16:22:46 +00:00
using QSB.EyeOfTheUniverse.MaskSync;
using QSB.WorldSync;
2022-03-02 19:46:33 -08:00
namespace QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
2023-07-28 19:30:57 +01:00
public class QSBQuantumInstrument : WorldObject<QuantumInstrument>
{
2022-03-02 19:46:33 -08:00
public void Gather()
{
2022-05-03 08:48:24 +01:00
var maskZoneController = QSBWorldSync.GetUnityObject<MaskZoneController>();
2022-03-02 19:46:33 -08:00
if (maskZoneController._maskInstrument == AttachedObject)
{
2022-05-03 08:48:24 +01:00
var shuttleController = QSBWorldSync.GetUnityObject<EyeShuttleController>();
2022-03-02 19:46:33 -08:00
foreach (var player in MaskManager.WentOnSolanumsWildRide)
{
player.SetVisible(true, 2);
}
2022-01-15 16:22:46 +00:00
2022-03-02 19:46:33 -08:00
maskZoneController._whiteSphere.SetActive(false);
shuttleController._maskObject.SetActive(true);
}
2022-03-02 19:46:33 -08:00
AttachedObject.Gather();
}
2022-08-02 17:38:14 -07:00
}