/// <summary> /// 添加收到消息函数 /// </summary> public void AddRecListener(string address, Pomelo.WebglPomelo.Transporter transporter) { if (!m_recActions.ContainsKey(address)) { m_recActions[address] = new List <Pomelo.WebglPomelo.Transporter>(); } m_recActions[address].Add(transporter); }
/// <summary> /// 移除收到消息函数 /// </summary> public void RemoveRecListener(string address, Pomelo.WebglPomelo.Transporter transporter) { m_recActions[address].Remove(transporter); }