mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
22bc5f3fbd
commit
7ff7bb3d83
@ -256,9 +256,18 @@ void SerializeServerDelta(NetworkWriter writer, byte baselineTick, Vector3? posi
|
|||||||
{
|
{
|
||||||
writer.WriteByte(baselineTick);
|
writer.WriteByte(baselineTick);
|
||||||
|
|
||||||
if (syncPosition) writer.WriteVector3(position.Value);
|
if (syncPosition)
|
||||||
if (syncRotation) writer.WriteQuaternion(rotation.Value);
|
{
|
||||||
if (syncScale) writer.WriteVector3(scale.Value);
|
writer.WriteVector3(position.Value);
|
||||||
|
}
|
||||||
|
if (syncRotation)
|
||||||
|
{
|
||||||
|
writer.WriteQuaternion(rotation.Value);
|
||||||
|
}
|
||||||
|
if (syncScale)
|
||||||
|
{
|
||||||
|
writer.WriteVector3(scale.Value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DeserializeServerDelta(NetworkReader reader, out byte baselineTick, out Vector3? position, out Quaternion? rotation, out Vector3? scale)
|
bool DeserializeServerDelta(NetworkReader reader, out byte baselineTick, out Vector3? position, out Quaternion? rotation, out Vector3? scale)
|
||||||
|
Loading…
Reference in New Issue
Block a user