quantum-space-buddies/QSB/Messaging/ToggleMessage.cs

21 lines
463 B
C#
Raw Normal View History

2020-08-09 07:37:32 +00:00
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);
}
}
}