// 游戏登出
 public void Logout()
 {
     openID    = "n";
     headID    = "";
     otherName = "";
     isLogin   = false;
     ConnServer.Instance.DisconnectServer();
     ConnServer.ConnectionServer(ToolsFunc.GetServerIP(ServerInfo.Data.ip), ServerInfo.Data.port);
     //ManagerScene.Instance.LoadScene(SceneType.DzViewLogin);
 }
 void OnClick(GameObject go)
 {
     if (go == btnQiut)
     {
         Application.Quit();
     }
     else if (go == btnReconnect)
     {
         if (isConnect)
         {
             isConnect = false;
             LBDesc.gameObject.SetActive(true);
             LBDesc.text = "正在连接中...";
             ConnServer.Instance.DisconnectServer();
             ConnServer.ConnectionServer(ToolsFunc.GetServerIP(ServerInfo.Data.ip), (ushort)ServerInfo.Data.port);
         }
     }
 }
    // Update is called once per frame
    void Update()
    {
        if (Application.internetReachability == NetworkReachability.NotReachable || GameUpdate.Instance != null)
        {
            if (CurNetworkType != NetworkReachability.NotReachable)
            {
                //  UIManager.Instance.ShowUiPanel(UIPaths.ReconectTipPanel);
            }

            CurNetworkType = NetworkReachability.NotReachable;

            // UIManager.Instance.ShowUiPanel(UIPaths.ReconectTipPanel);
        }
        else if (Application.internetReachability == NetworkReachability.ReachableViaCarrierDataNetwork)
        {
            if (CurNetworkType != NetworkReachability.ReachableViaCarrierDataNetwork)
            {
                ConnServer.Instance.DisconnectServer();
                // AndroidOrIOSResult.GetMask();
                intervalTime = 0;
            }
            CurNetworkType = NetworkReachability.ReachableViaCarrierDataNetwork;
            if (!ConnServer.m_IsConnectServer)//断开服务器
            {
                if (intervalTime <= 0)
                {
                    intervalTime = 3;
                    ConnServer.m_WaitServerMsgCount = 0;
                    if (ServerInfo.Data.ip != null)
                    {
                        ConnServer.ConnectionServer(ToolsFunc.GetServerIP(ServerInfo.Data.ip), ServerInfo.Data.port);
                    }
                }
                else
                {
                    intervalTime -= Time.deltaTime;
                }
            }

            //  UIManager.Instance.HideUiPanel(UIPaths.ReconectTipPanel);
        }
        else if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork)
        {
            if (CurNetworkType != NetworkReachability.ReachableViaLocalAreaNetwork)
            {
                ConnServer.Instance.DisconnectServer();
                //  AndroidOrIOSResult.GetMask();
                intervalTime = 0;
            }
            CurNetworkType = NetworkReachability.ReachableViaLocalAreaNetwork;
            if (!ConnServer.m_IsConnectServer)//断开服务器
            {
                if (intervalTime <= 0)
                {
                    intervalTime = 3;
                    ConnServer.m_WaitServerMsgCount = 0;
                    if (ServerInfo.Data.ip != null)
                    {
                        ConnServer.ConnectionServer(ToolsFunc.GetServerIP(ServerInfo.Data.ip), ServerInfo.Data.port);
                    }
                }
                else
                {
                    intervalTime -= Time.deltaTime;
                }
            }

            //    UIManager.Instance.HideUiPanel(UIPaths.ReconectTipPanel);
        }
    }