mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
26 lines
602 B
C#
26 lines
602 B
C#
using QSB.Messaging;
|
|
using UnityEngine.Networking;
|
|
|
|
namespace QSB.Animation
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|