public void ProcessPacket(MessageStruct packet) { if (m_ProcessMethod.Contains(packet.getHeadCommand()) == false) { //--4>: 不用 LogLeve.ERROR, 客户端没处理的一些包先不用管 Debug.Log("[ERROR] PacketGate.ProcessPacket: Attempt to packet with commad: "); return; } PacketProcessFuc fun = m_ProcessMethod[packet.getHeadCommand()] as PacketProcessFuc; if (fun != null) { fun(packet); } }