quantum-space-buddies/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs
2022-03-10 17:57:50 -08:00

20 lines
396 B
C#

using QSB.Messaging;
namespace QSB.SatelliteSync.Messages;
internal class SatelliteProjectorMessage : QSBMessage<bool>
{
public SatelliteProjectorMessage(bool usingProjector) : base(usingProjector) { }
public override void OnReceiveRemote()
{
if (Data)
{
SatelliteProjectorManager.Instance.RemoteEnter();
}
else
{
SatelliteProjectorManager.Instance.RemoteExit();
}
}
}