帧数据函数

This commit is contained in:
huyulong 2024-12-28 15:57:12 +08:00
parent c3fc4b7c0b
commit 7f0dca55bb

View File

@ -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<WSMessage>(sendData);
// InputData login = ProtoBufffer.DeSerialize<InputData>(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<WSMessage>(sendData);
InputData login = ProtoBufffer.DeSerialize<InputData>(deinfo.Data.ToByteArray());
Debug.Log("Ö¡´æ´¢²Ù×÷ÊäÈë");
//BroadcastFrameMsg.FramesFieldNumber
// wEBScriptListener.SendMessageByte(sendData);
//}
wEBScriptListener.SendMessageByte(sendData);
}
//歌혤돛야
void PickUpProp()