Esempio n. 1
0
        static void ProcessLoginResponse(PacketData packet)
        {
            var response = new LoginResPacket();

            response.FromBytes(packet.BodyData);

            if (response.Result == ERROR_CODE.NONE)
            {
                Debug.Log("로그인성공");
            }
            else
            {
                GameNetworkServer.Instance.LocalUserID = "";
            }

            LoginSceneManager.loginResult = (Int16)response.Result;
        }
Esempio n. 2
0
        static void ProcessLoginResponse(ClientNetLib.PacketData packet)
        {
            var response = new LoginResPacket();

            response.Decode(packet.BodyData);

            if (response.Result == (Int16)ERROR_CODE.NONE)
            {
                Debug.Log("게임 서버 로그인 성공");
                GameNetworkServer.Instance.ClientStatus = GameNetworkServer.CLIENT_STATUS.LOGIN;
                //로그인 성공처리
            }
            else
            {
                GameNetworkServer.Instance.UserID = "";
            }
        }