private void SetAllSkillText()
    {
        stat_playerFireRateText.text        = playerFireRate.ToString();
        stat_playerDamageText.text          = playerDamage.ToString();
        stat_playerMultishotText.text       = playerMultishot.ToString();
        stat_playerRecoilReductionText.text = playerRecoilReduction.ToString();

        cost_playerFireRateText.text        = skillCost.CostOfplayerFireRate(playerFireRate).ToString();
        cost_playerDamageText.text          = skillCost.CostOfplayerDamage(playerDamage).ToString();
        cost_playerMultishotText.text       = skillCost.CostOfplayerMultishot(playerMultishot).ToString();
        cost_playerRecoilReductionText.text = skillCost.CostOfplayerRecoilReduction(playerRecoilReduction).ToString();

        baseSquadText.text     = baseSquadSize.ToString();
        baseFireRateText.text  = baseFireRate.ToString();
        baseDamageText.text    = baseDamage.ToString();
        baseDronesText.text    = baseDrones.ToString();
        baseWiresText.text     = baseWires.ToString();
        baseAirStrikeText.text = baseAirStrike.ToString();
        baseNapalmText.text    = baseNapalm.ToString();

        cost_baseSquadText.text     = skillCost.CostOfbaseSquadSize(baseSquadSize).ToString();
        cost_baseFireRateText.text  = skillCost.CostOfbaseFireRate(baseFireRate).ToString();
        cost_baseDamageText.text    = skillCost.CostOfbaseDamage(baseDamage).ToString();
        cost_baseDronesText.text    = skillCost.CostOfbaseDrones(baseDrones).ToString();
        cost_baseWiresText.text     = skillCost.CostOfbaseWires(baseWires).ToString();
        cost_baseAirStrikeText.text = skillCost.CostOfbaseAirStrike(baseAirStrike).ToString();
        cost_baseNapalmText.text    = skillCost.CostOfbaseNapalm(baseNapalm).ToString();

        ammoCritText.text = ammoCriticalHit.ToString();
        ammoIncText.text  = ammoIncendiary.ToString();
        ammoExplText.text = ammoExplosive.ToString();

        cost_ammoCritText.text = skillCost.CostOfammoCritical(ammoCriticalHit).ToString();
        cost_ammoIncText.text  = skillCost.CostOfammoInc(ammoIncendiary).ToString();
        cost_ammoExplText.text = skillCost.CostOfammoExpl(ammoExplosive).ToString();
    }
Exemple #2
0
    private void GetCost()
    {
        switch (buttonIndex)
        {
        case 1:
            cost = skillCost.CostOfplayerFireRate(upMenu.GetplayerFireRate());
            break;

        case 2:
            cost = skillCost.CostOfplayerDamage(upMenu.GetplayerDamage());
            break;

        case 3:
            cost = skillCost.CostOfplayerMultishot(upMenu.GetplayerMultishot());
            break;

        case 4:
            cost = skillCost.CostOfplayerRecoilReduction(upMenu.GetplayerRecoilReduction());
            break;

        case 5:
            cost = skillCost.CostOfbaseSquadSize(upMenu.GetbaseSquadSize());
            break;

        case 6:
            cost = skillCost.CostOfbaseFireRate(upMenu.GetbaseFireRate());
            break;

        case 7:
            cost = skillCost.CostOfbaseDamage(upMenu.GetbaseDamage());
            break;

        case 8:
            cost = skillCost.CostOfbaseDrones(upMenu.GetbaseDrones());
            break;

        case 9:
            cost = skillCost.CostOfbaseWires(upMenu.GetbaseWires());
            break;

        case 10:
            cost = skillCost.CostOfbaseAirStrike(upMenu.GetbaseAirStrike());
            break;

        case 11:
            cost = skillCost.CostOfbaseNapalm(upMenu.GetbaseNapalm());
            break;

        case 12:
            cost = skillCost.CostOfammoCritical(upMenu.GetammoCritical());
            break;

        case 13:
            cost = skillCost.CostOfammoExpl(upMenu.GetammoExplosive());
            break;

        case 14:
            cost = skillCost.CostOfammoInc(upMenu.GetammoIncendiary());
            break;
        }
    }