mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
fix crouching????
This commit is contained in:
parent
05fd10a50c
commit
f7224c2382
@ -3,21 +3,24 @@ using UnityEngine.Networking;
|
|||||||
|
|
||||||
namespace QSB.Messaging
|
namespace QSB.Messaging
|
||||||
{
|
{
|
||||||
public class AnimTriggerMessage : PlayerMessage
|
public class AnimTriggerMessage : MessageBase
|
||||||
{
|
{
|
||||||
public short TriggerId;
|
public short TriggerId;
|
||||||
|
public uint SenderId;
|
||||||
public float Value;
|
public float Value;
|
||||||
|
|
||||||
public override void Deserialize(NetworkReader reader)
|
public override void Deserialize(NetworkReader reader)
|
||||||
{
|
{
|
||||||
Value = reader.ReadSingle();
|
Value = reader.ReadSingle();
|
||||||
TriggerId = reader.ReadInt16();
|
TriggerId = reader.ReadInt16();
|
||||||
|
SenderId = reader.ReadPackedUInt32();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Serialize(NetworkWriter writer)
|
public override void Serialize(NetworkWriter writer)
|
||||||
{
|
{
|
||||||
writer.Write(Value);
|
writer.Write(Value);
|
||||||
writer.Write(TriggerId);
|
writer.Write(TriggerId);
|
||||||
|
writer.Write(SenderId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user