Пример #1
0
    public void updateScores()
    {
        feedbackCalcs = GetComponent <FeedbackCalculations>();
        hypePatch     = feedbackCalcs.CalculateHype();
        // Award Score
        if (hypePatch >= 3)
        {
            if (hypePatch == 5)
            {
                hypeScore += 2;
            }
            else
            {
                hypeScore++;
            }
        }
        else if (hypePatch < 3)
        {
            if (hypePatch == 0)
            {
                hypeScore -= 2;
            }
            else
            {
                hypeScore--;
            }
        }
        hypeScore = checkScore(hypeScore);

        funPatch = feedbackCalcs.CalculateFun();
        if (funPatch >= 3)
        {
            if (funPatch == 5)
            {
                funScore += 2;
            }
            else
            {
                funScore++;
            }
        }
        else if (funPatch < 3)
        {
            if (funPatch == 0)
            {
                funScore -= 2;
            }
            else
            {
                funScore--;
            }
        }
        funScore = checkScore(funScore);


        bossPatch = feedbackCalcs.CheckArchetype();
        if (bossPatch)
        {
            bossScore++;
        }
        else
        {
            bossScore--;
        }
        bossScore = checkScore(bossScore);

        sponsorPatch = feedbackCalcs.CheckSponsors();
        if (sponsorPatch)
        {
            sponsorScore++;
        }
        else
        {
            sponsorScore--;
        }
        sponsorScore = checkScore(sponsorScore);

        esportsPatch = feedbackCalcs.CheckBalance();
        if (esportsPatch >= 6)
        {
            if (esportsPatch > 9)
            {
                esportsScore += 2;
            }
            else
            {
                esportsScore++;
            }
        }
        else if (esportsPatch < 5)
        {
            if (esportsPatch < 1)
            {
                esportsScore -= 2;
            }
            else
            {
                esportsScore--;
            }
        }
        esportsScore = checkScore(esportsScore);
    }