/// <summary> /// 注销消息 /// </summary> public void UnRegistMsgs(IMessageProcess mono, List <ushort> msgIds) { for (int i = 0; i < msgIds.Count; i++) { switch (MsgBase.GetMsgType(msgIds[i])) { case MsgType.UI: uiMgr.UnRegistMsg(mono, msgIds[i]); break; case MsgType.Net: netMgr.UnRegistMsg(mono, msgIds[i]); break; case MsgType.Entity: entityMgr.UnRegistMsg(mono, msgIds[i]); break; case MsgType.Audio: audioMgr.UnRegistMsg(mono, msgIds[i]); break; case MsgType.Asset: assetMgr.UnRegistMsg(mono, msgIds[i]); break; } } }