/// <summary> /// 서버 접속 정보 요청 /// </summary> public void SendRQLobbyLogin(Action <string, string> response, Action <string> timeout) { if (USER.I.IsGuestLogin) { PK.Login.SendData loginItem = new PK.Login.SendData(USER.I._TempGuestID, "", "guest", "", "", "", "", 0, "guest"); PK.Login.SEND command = new PK.Login.SEND(PKID.LobbyLogin, loginItem); _NetSocket.SendData(xLitJson.JsonMapper.ToJson(command), PKID.LobbyLogin, response, timeout); if (!string.IsNullOrEmpty(USER.I._TempGuestID)) { PlayerPrefHelper.SetUserID(USER.I._TempGuestID); USER.I._TempGuestID = ""; } } else // facebook login { FBLoginVO facebookLoginInfo = Main.FB.GetFbLoginInfo(); PK.Login.SendData loginItem = new PK.Login.SendData(facebookLoginInfo.id, facebookLoginInfo.email, facebookLoginInfo.first_name, facebookLoginInfo.gender, facebookLoginInfo.picUrl, facebookLoginInfo.last_name, facebookLoginInfo.locale, facebookLoginInfo.timezone, facebookLoginInfo.name); PK.Login.SEND command = new PK.Login.SEND(PKID.LobbyLogin, loginItem); _NetSocket.SendData(xLitJson.JsonMapper.ToJson(command), PKID.LobbyLogin, response, timeout); } }