public void handleRPCMove(NetworkMessage RPCMsg)
        {
            byte[]  bytes = RPCMsg.reader.ReadBytesAndSize();
            RPCMove msg   = Game.ClientController.Deserialize <RPCMove> (bytes);

            localRenderer.playMove(msg.move, msg.color, msg.targetStatus, msg.targetType, msg.startPos, msg.horizontal);
        }
Exemplo n.º 2
0
 public void sendRPCMove(int targetID, RPCMove move)
 {
     sendMsg(move, targetID, (short)MsgType.RPCMove);
 }