quantum-space-buddies/QSB/SatelliteSync/Messages/SatelliteProjectorMessage.cs

22 lines
413 B
C#
Raw Normal View History

2021-12-24 21:19:21 -08:00
using QSB.Messaging;
namespace QSB.SatelliteSync.Messages
{
internal class SatelliteProjectorMessage : QSBBoolMessage
{
public SatelliteProjectorMessage(bool usingProjector) => Value = usingProjector;
public override void OnReceiveRemote()
{
if (Value)
{
SatelliteProjectorManager.Instance.RemoteEnter();
}
else
{
SatelliteProjectorManager.Instance.RemoteExit();
}
}
}
}