Ejemplo n.º 1
0
    public void UpgradeStat(string statName) // PWR, SPD, TGH
    {
        int Cost = getStatCost();

        if (Cost > PlayerEXP)
        {
            Debug.Log("YOU CANNOT AFFORD THAT STAT UPGRADE");
        }
        else
        {
/*
 *          int NumHave;
 *          if (PlayerRank > 1)
 *          {
 *              NumHave = Rank2Upgrades;
 *          }
 *          else
 *          {
 *              NumHave = Rank1Upgrades;
 *          }
 */
            prefs.buyStatUpgrade(statName, Cost);
            cancelPopup();
        }
        //        cheapoUpdate();
    }