diff --git a/Runtime/HumanoidControl/Scripts/Networking/Roboid/ControlCore/Messages.cs b/Runtime/HumanoidControl/Scripts/Networking/Roboid/ControlCore/Messages.cs index a24554f..ecf47f9 100644 --- a/Runtime/HumanoidControl/Scripts/Networking/Roboid/ControlCore/Messages.cs +++ b/Runtime/HumanoidControl/Scripts/Networking/Roboid/ControlCore/Messages.cs @@ -268,7 +268,8 @@ namespace Passer.Control { return buffer; } public override void Deserialize(byte[] buffer) { - uint ix = 0; + byte ix = 0; + this.networkId = buffer[ix++]; this.thingId = buffer[ix++]; int strlen = buffer[ix++]; this.name = System.Text.Encoding.UTF8.GetString(buffer, (int)ix, strlen); @@ -405,6 +406,7 @@ namespace Passer.Control { return SendMsg(client, msg); } public static async Task Receive(Stream dataStream, Client client, byte packetSize) { + UnityEngine.Debug.Log("Receive pose"); if (packetSize != length) return false;