quantum-space-buddies/QSB/EyeOfTheUniverse/InstrumentSync/WorldObjects/QSBQuantumInstrument.cs

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-03 03:46:33 +00:00
namespace QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
2023-07-28 18:30:57 +00:00
public class QSBQuantumInstrument : WorldObject<QuantumInstrument>
{
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-05-03 07:48:24 +00:00
var shuttleController = QSBWorldSync.GetUnityObject<EyeShuttleController>();
2022-03-03 03:46:33 +00:00
foreach (var player in MaskManager.WentOnSolanumsWildRide)
{
player.SetVisible(true, 2);
}
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-03-03 03:46:33 +00:00
AttachedObject.Gather();
}
2022-08-03 00:38:14 +00:00
}