quantum-space-buddies/QSB/Messaging/PlayerMessage.cs
2020-08-10 18:17:54 +02:00

20 lines
416 B
C#

using UnityEngine.Networking;
namespace QSB.Messaging
{
public class PlayerMessage : MessageBase
{
public uint SenderId { get; set; }
public override void Deserialize(NetworkReader reader)
{
SenderId = reader.ReadUInt32();
}
public override void Serialize(NetworkWriter writer)
{
writer.Write(SenderId);
}
}
}