quantum-space-buddies/QSB/GeyserSync/GeyserMessage.cs
2020-08-13 19:25:12 +02:00

23 lines
503 B
C#

using QSB.WorldSync;
using UnityEngine.Networking;
namespace QSB.GeyserSync
{
public class GeyserMessage : WorldObjectMessage
{
public bool State { get; set; }
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
State = reader.ReadBoolean();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(State);
}
}
}