mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Messages: removed OverrideTransformMessages because it wasn't used anywhere
This commit is contained in:
parent
5ce07ac0a4
commit
5c0cc5b99c
@ -290,30 +290,6 @@ public override void Serialize(NetworkWriter writer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class OverrideTransformMessage : MessageBase
|
|
||||||
{
|
|
||||||
public NetworkInstanceId netId;
|
|
||||||
public byte[] payload;
|
|
||||||
public bool teleport;
|
|
||||||
public int time;
|
|
||||||
|
|
||||||
public override void Deserialize(NetworkReader reader)
|
|
||||||
{
|
|
||||||
netId = reader.ReadNetworkId();
|
|
||||||
payload = reader.ReadBytesAndSize();
|
|
||||||
teleport = reader.ReadBoolean();
|
|
||||||
time = (int)reader.ReadPackedUInt32();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(NetworkWriter writer)
|
|
||||||
{
|
|
||||||
writer.Write(netId);
|
|
||||||
writer.WriteBytesAndSize(payload);
|
|
||||||
writer.Write(teleport);
|
|
||||||
writer.WritePackedUInt32((uint)time);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class AnimationMessage : MessageBase
|
class AnimationMessage : MessageBase
|
||||||
{
|
{
|
||||||
public NetworkInstanceId netId;
|
public NetworkInstanceId netId;
|
||||||
|
Loading…
Reference in New Issue
Block a user