Exemple #1
0
    //断开网络连接,主动断开
    public void DisConnect()
    {
//      Debug.LogError(log);

//      StopCoroutine(WaitingReceiveIE());
        StopAllCoroutines();

        isEnterRoom       = false;
        isOtherSideOnline = false;
        isUseRemoteGather = false;

        if (RemoteGather.needSendBtnCtrlMessages != null)
        {
            RemoteGather.needSendBtnCtrlMessages.Clear();
        }

        if (mfqTcpClient != null)
        {
            mfqTcpClient.Close();
            mfqTcpClient = null;

            string log = "断开讲盘网络";
            GlobalDebug.Addline(log);
            Debug.Log(log);
            Debug.LogWarning(log);
        }
    }
Exemple #2
0
    //断开网络连接,主动断开
    public void DisConnect()
    {
        StopAllCoroutines();

        isEnterRoom       = false;
        isOtherSideOnline = false;
//      lastIsOtherSideOnline = false;
//      isUseRemoteGather = false;

//        if(RemoteGather.needSendBtnCtrlMessages!=null)
//        RemoteGather.needSendBtnCtrlMessages.Clear();

        if (mfqTcpClient != null)
        {
            mfqTcpClient.Close();
            mfqTcpClient = null;

            string log = "断开TCP连接";
            GlobalDebug.Addline(log);
            Debug.Log(log);
            Debug.LogWarning(log);
        }
    }