private bool OnSocketSubConfigServer(byte[] data, int dataSize) { if (dataSize < Marshal.SizeOf(typeof(CMD_GR_ConfigServer))) { return(false); } CMD_GR_ConfigServer pConfigServer = NetUtil.BytesToStruct <CMD_GR_ConfigServer>(data); return(true); }
//房间配置 public void ConFigReolve(byte[] tmpBuf, int size) { CMD_GR_ConfigServer config = NetUtil.BytesToStruct <CMD_GR_ConfigServer>(tmpBuf); MyDebug.Log("###################################" + config); }