コード例 #1
0
 private void RecipeCounter(RecipeEvent evt)
 {
     recipies++;
     Debug.Log(recipies + "Amount of");
     if (recipies == 4)
     {
         inventory.AddInventoryItem(clickableitem);
     }
 }
コード例 #2
0
	private void RecipeCounter(RecipeEvent evt)
	{
		recipies++;
		Debug.Log(recipies + "Amount of");
		if (recipies == 4)
		{
			inventory.AddInventoryItem(clickableitem);
		}
	}
コード例 #3
0
        // 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); });