What the heck does the ‘allProducts => {’ mean? It doesn’t even have a variable called ‘allProducts’, unless its referring to something within the StoreKitManager?
function Start()
{
StoreKitManager.productListReceivedEvent += RecicedProductList;
}
function RecicedProductList( List<StoreKitProduct> allProducts/* add parameter according to the "productListReceivedEvent"'s delegate)
{
Debug.Log( "received total products: " + allProducts.Count );
_products = allProducts;
}
I havent tested this code but 99% it should work. Also i added parameter thinking that it is Prime31 plugin… hope im right!!