This commit is contained in:
huyulong 2024-12-12 19:49:08 +08:00
parent be71fcb864
commit b7948af071
2 changed files with 29 additions and 4 deletions

View File

@ -231,7 +231,7 @@ public class test : MonoBehaviour
//}
//开始计时
//11开始计时
void RoomStartTime()
{
JoinRoomRequest data = new JoinRoomRequest();
@ -325,7 +325,26 @@ public class test : MonoBehaviour
wEBScriptListener.SendMessageByte(sendData);
}
//12消息转发
public void MessageToUser()
{
MessageBroadcastRequest data = new MessageBroadcastRequest();
data.RoomId = "168888";
data.Type = 1;
data.RoleId = "8002";
data.Cmd = "55";
WSMessage msg = new WSMessage();
msg.Module = "hall";
msg.ServiceName = "MessageToUser";
msg.Data = ByteString.CopyFrom(ProtoBufffer.Serialize(data));
byte[] sendData = ProtoBufffer.Serialize(msg);
WSMessage deinfo = ProtoBufffer.DeSerialize<WSMessage>(sendData);
MessageBroadcastRequest login = ProtoBufffer.DeSerialize<MessageBroadcastRequest>(deinfo.Data.ToByteArray());
Debug.Log("==========消息转发函数调用");
//BroadcastFrameMsg.FramesFieldNumber
wEBScriptListener.SendMessageByte(sendData);
}
@ -536,6 +555,12 @@ public class test : MonoBehaviour
break;
case "task.InitStart":
break;
//任务触发
case "task.TaskTrigger":
Debug.Log("-----------task.TaskTrigger");

@ -1 +1 @@
Subproject commit 0385375c1818fc57f42407a6c5301a26ded3a19a
Subproject commit 2e42b278d4c6ac9e045925dcc6e04896a19cbfd8