예제 #1
0
 public void Release()
 {
     State = EState.Released;
     if (mUseInternalBroadcastLogic)
     {
         mBroadcastUdpClient.Close();
         mBroadcastUdpClient.Dispose();
         mUDPBoxBroadcast?.ReleaseThread();
     }
     UDPBox.UnregistMessageIntercept(InterceptAndUpdateConnectState);
     UDPBox.UnregistWorkThreadOperate(RefreshConnectStateInWorkThread);
     UDPBox.Dispose();
 }
예제 #2
0
 void OnDisable()
 {
     mUDPBoxConnect.Dispose();
     mUDPBoxBroadcast.ReleaseThread();
 }
예제 #3
0
 void OnDisable()
 {
     mUDPBox1.Dispose();
     mUDPBox2.Dispose();
 }