// 비동기 방식 친구 요청 리스트 조회 public void getReceivedFriendListAsync() { BackendAsyncClass.BackendAsync(Backend.Social.Friend.GetReceivedRequestList, BRO => { if (BRO.IsSuccess()) { JsonData jsonData = BRO.GetReturnValuetoJSON()["rows"]; for (int i = 0; i < jsonData.Count; i++) { JsonData Data = jsonData[i]; string nickname = Data["nickname"][0].ToString(); string inDate = Data["inDate"][0].ToString(); for (int j = 0; j < ReceivedFriendList.childCount; j++) { if (!ReceivedFriendList.GetChild(j).gameObject.activeSelf) { ReceivedFriendList.GetChild(j).GetChild(1).GetComponent <Text>().text = nickname; ReceivedFriendList.GetChild(j).GetChild(2).GetComponent <Text>().text = inDate; ReceivedFriendList.GetChild(j).gameObject.SetActive(true); break; } } } print("비동기 방식 친구 요청 리스트 조회 성공"); } }); }
void Start() { Backend.Initialize(BRO => { Debug.Log("뒤끝 초기화 진행 " + BRO); // 성공 if (BRO.IsSuccess()) { // 해쉬키 Debug.Log(Backend.Utils.GetGoogleHash()); } // 실패 else { Debug.LogError("초기화 실패: " + BRO.GetErrorCode()); } }); }
void Start() { Backend.Initialize(BRO => { Debug.Log("Backend.Initialize " + BRO); // 성공 if (BRO.IsSuccess()) { Backend.BMember.CustomLogin(id, pw, callback => { Debug.Log("CustomLogin " + callback); isSuccess = callback.IsSuccess(); bro = callback; }); } // 실패 else { Debug.LogError("Failed to initialize the backend"); } }); }