Exemplo n.º 1
0
    public static void MinusFreeBooster(int numBooster, int val)
    {
        freeBooster[numBooster] -= val;

        if (freeBooster[numBooster] < 0)
        {
            freeBooster[numBooster] = 0;
        }

        PreferencesSaver.SetFreeBoosterCount(numBooster, freeBooster[numBooster]);
    }
Exemplo n.º 2
0
    public static void PlusFreeBooster(int numBooster, int val)
    {
        freeBooster[numBooster] += val;

        PreferencesSaver.SetFreeBoosterCount(numBooster, freeBooster[numBooster]);
    }