quantum-space-buddies/QSB/Messaging/AnimTriggerMessage.cs
2020-08-10 17:22:57 +01:00

25 lines
581 B
C#

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