/// <summary> /// Gets all catalog items. /// </summary> /// <param name="OnCatalogLoaded">Callback when completes.</param> public void GetAllCatalogItems(ProjectDelegates.PlayFabCatalogListCallback OnCatalogLoaded) { this.OnCatalogLoadedCallback = OnCatalogLoaded; if (catalogItems == null) { GetCatalogItemsRequest request = new GetCatalogItemsRequest(); request.CatalogVersion = "Test"; PlayFabClientAPI.GetCatalogItems(request, OnCatalogItemsLoaded, OnCatalogItemsError); } else { OnCatalogLoadedCallback(catalogItems); } }
/// <summary> /// Gets all catalog items. /// </summary> /// <param name="OnCatalogLoaded">Callback when completes.</param> public void GetAllCatalogItems(ProjectDelegates.PlayFabCatalogListCallback OnCatalogLoaded) { this.OnCatalogLoadedCallback = OnCatalogLoaded; if (catalogItems == null) { GetCatalogItemsRequest request = new GetCatalogItemsRequest(); request.CatalogVersion = "Test"; PlayFabClientAPI.GetCatalogItems(request, OnCatalogItemsLoaded, OnCatalogItemsError); } else { OnCatalogLoadedCallback(catalogItems); } }