From 7f0dca55bb818e06388c59d0d34de58d3a7503ab Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Sat, 28 Dec 2024 15:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=A7=E6=95=B0=E6=8D=AE=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/ProtoBuf/test.cs | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index 3a4a845f..c855a2e8 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -113,28 +113,28 @@ public class test : MonoBehaviour } } //帧存储操作输入 - //void UpFps() - //{ - // InputData data = new InputData(); - // data.RoomId = "168888"; - // data.Id = "778899"; - // data.SId = "7"; - // data.X = 7f; - // data.Y = 5f; - // data.Z = 4f; - // data.RoomSeatId = 5; - // WSMessage msg = new WSMessage(); - // msg.Module = "fps"; - // msg.ServiceName = "UpFps"; - // msg.Data = ByteString.CopyFrom(ProtoBufffer.Serialize(data)); - // byte[] sendData = ProtoBufffer.Serialize(msg); - // WSMessage deinfo = ProtoBufffer.DeSerialize(sendData); - // InputData login = ProtoBufffer.DeSerialize(deinfo.Data.ToByteArray()); - // Debug.Log("帧存储操作输入"); - // //BroadcastFrameMsg.FramesFieldNumber + void UpFps() + { + InputData data = new InputData(); + data.RoomId = "168888"; + data.Id = "778899"; + data.SId = "7"; + data.X = 7f; + data.Y = 5f; + data.Z = 4f; + data.RoomSeatId = 5; + WSMessage msg = new WSMessage(); + msg.Module = "fps"; + msg.ServiceName = "UpFps"; + msg.Data = ByteString.CopyFrom(ProtoBufffer.Serialize(data)); + byte[] sendData = ProtoBufffer.Serialize(msg); + WSMessage deinfo = ProtoBufffer.DeSerialize(sendData); + InputData login = ProtoBufffer.DeSerialize(deinfo.Data.ToByteArray()); + Debug.Log("帧存储操作输入"); + //BroadcastFrameMsg.FramesFieldNumber - // wEBScriptListener.SendMessageByte(sendData); - //} + wEBScriptListener.SendMessageByte(sendData); + } //拾取道具 void PickUpProp()