quantum-space-buddies/QSB/Events/ToggleMessage.cs
2020-08-09 09:37:32 +02:00

21 lines
463 B
C#

using UnityEngine.Networking;
namespace QSB.Events
{
public class ToggleMessage : PlayerMessage
{
public bool On { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
On = reader.ReadBoolean();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(On);
}
}
}