什么时候发生 Lidgren.Network.NetException:“此消息已发送!使用 NetPeer.SendMessage() 有效地发送多个收件人”?
else if (CounfOfPlayers == 1)
{
Player2Connection = inc.SenderConnection;
Console.WriteLine(Player2Connection.RemoteEndPoint.ToString());
CounfOfPlayers++;
Console.WriteLine("Accepted second player");
outmsg.Write((byte)PacketType.RDY);
Server.SendMessage(outmsg, Player1Connection, NetDeliveryMethod.ReliableOrdered);
Server.SendMessage(outmsg, Player2Connection, NetDeliveryMethod.ReliableOrdered);
}