private void RecipeCounter(RecipeEvent evt) { recipies++; Debug.Log(recipies + "Amount of"); if (recipies == 4) { inventory.AddInventoryItem(clickableitem); } }
private void RecipeCounter(RecipeEvent evt) { recipies++; Debug.Log(recipies + "Amount of"); if (recipies == 4) { inventory.AddInventoryItem(clickableitem); } }
// outside of debug environments, we'll need to use a helper function to make the appropriate iap call // for the number of pylons given, get arguments for one of the iap-based backend calls, and then call that // here instead. // it may make more sense to do all iap on the wallet side so we can offload this logic, in which case a // separate GoogleIapGetPylons IPC call does not need to exist. public void GetRecipes(RecipeEvent evt) => IpcInteraction.Stage(() => new GetRecipes(), (s, e) => { evt.Invoke(s, ((RecipeResponse)e).Recipes); });