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()