Esempio n. 1
0
 /// <summary>
 /// 销毁网络频道。
 /// </summary>
 /// <param name="name">网络频道名称。</param>
 /// <returns>是否销毁网络频道成功。</returns>
 public bool DestroyNetworkChannel(string name)
 {
     for (int i = 0; i < m_NetworkChannels.Count; i++)
     {
         NetworkChannel Channel = m_NetworkChannels[i];
         if (Channel.Name == name)
         {
             m_NetworkChannels.Remove(Channel);
         }
     }
     //if (packetHandler != null)
     //    UnRegisterHandler(packetHandler);
     return(m_NetworkManager.DestroyNetworkChannel(name));
 }
Esempio n. 2
0
 /// <summary>
 /// 销毁网络频道。
 /// </summary>
 /// <param name="name">网络频道名称。</param>
 /// <returns>是否销毁网络频道成功。</returns>
 public bool DestroyNetworkChannel(string name)
 {
     return(m_NetworkManager.DestroyNetworkChannel(name));
 }