quantum-space-buddies/QSB/MessagesCore/FloatMessage.cs
Mister_Nebula 8548baa680 cleanup
2020-11-08 16:10:10 +00:00

22 lines
485 B
C#

using QSB.Messaging;
using UnityEngine.Networking;
namespace QSB.MessagesCore
{
public class FloatMessage : PlayerMessage
{
public float Value;
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
Value = reader.ReadSingle();
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(Value);
}
}
}