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