Ejemplo n.º 1
0
    public static void ConsumeItems()
    {
        var buffer = new List <string>(PlayFabGameBridge.consumableItemsConsumed.Keys);

        foreach (string item in buffer)
        {
            if (PlayFabGameBridge.consumableItemsConsumed[item] != 0)
            {
                ItemsController.instance.ConsumeCalculator(item, PlayFabGameBridge.consumableItemsConsumed[item]);
                PlayFabGameBridge.recordConsumed(item);
            }
        }
    }
Ejemplo n.º 2
0
    public static void ConsumeItems()
    {
        var buffer = new List <string>(PlayFabGameBridge.consumableItemsConsumed.Keys);         // needed because we cannot otherwise change a dictionary while we iterate over it

        foreach (string item in buffer)
        {
            if (PlayFabGameBridge.consumableItemsConsumed[item] != 0)
            {
                PlayFabItemsController.instance.ConsumeCalculator(item, PlayFabGameBridge.consumableItemsConsumed[item]);
                PlayFabGameBridge.recordConsumed(item);
            }
        }
    }