Beispiel #1
0
        public void OnConnectEnd(KClientNetLib.KConnectRet iRet)
        {
            if (iRet == KClientNetLib.KConnectRet.KCALLBACK_SUCCESS)
            {
                if (m_iState == PlayerState.PlayerStateConnectingLGW)
                {
                    EndConnectLGW();
                }
                else if (m_iState == PlayerState.PlayerStateConnectingGW)
                {
                    EndConnectGW();
                }
            }
            else
            {
                switch (iRet)
                {
                case KClientNetLib.KConnectRet.KCALLBACK_CONNECTFAILED:
                    LogManager.LogError("", "网络开启异常,请查看设置");
                    break;
                }

                Reset();
            }
        }
Beispiel #2
0
 override public void OnConnectEnd(KClientNetLib.KConnectRet iRet)
 {
     m_networkRef.OnConnectEnd(iRet);
 }