public async void LoadUserCollectionFromFirebase(UserDB pUser) { UserCollectionAuxiliar userCollectionAuxiliar = await helperUserCardCollectionFirebaseKimboko.GetUserCollectionFromFirebase(pUser); quantityOfCardsUserHaveFromBDOnline = userCollectionAuxiliar.quantityOfCardsUserHaveFromBDOnline; helperCardCollectionJsonKimboko.SetUserCollectionToJson(userCollectionAuxiliar.dfCollection); gameMenuManager.StartCoroutine(WaitForLoading(userCollectionAuxiliar.dfCollection)); }
private async Task <bool> LoadUserCollectionFromFirebase(UserDB pUser) { UserCollectionAuxiliar userCollectionAuxiliar = await helperUserCardCollectionFirebaseKimboko.GetUserCollectionFromFirebase(pUser); Dictionary <string, int> quantityOfCardsUserHaveFromBDOnline = userCollectionAuxiliar.quantityOfCardsUserHaveFromBDOnline; allUserCards.Add(pUser.ID, quantityOfCardsUserHaveFromBDOnline); return(true); }