quantum-space-buddies/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs
2023-07-28 19:30:57 +01:00

20 lines
394 B
C#

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