void ResponseLoginToClient(ERROR_CODE errorCode, string sessionID) { var resLogin = new LoginResPacket() { Result = (short)errorCode }; ServerNetwork.SendData(sessionID, (UInt16)CL_PACKET_ID.RES_GAME_LOGIN, resLogin.ToBytes()); }
static void ProcessResponseLogin(Byte[] data) { try { var response = new LoginResPacket(); response.Decode(data); Debug.Log("로그인패킷 도착"); if (response.Result == (Int16)ERROR_CODE.NONE) { LobbyNetworkServer.Instance.m_ClientState = CLIENT_LOBBY_STATE.LOGIN; } else { //TODO 에러코드에 따라 로그인 실패이유를 pop-up으로 안내해준다. Debug.Log("로그인 실패"); } } catch (Exception e) { Debug.LogError(e.ToString()); } }