quantum-space-buddies/QSB/Messaging/ToggleMessage.cs
Mister_Nebula 9b98a2fff5 Refactor
2020-08-09 12:19:51 +01: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);
}
}
}