Example #1
0
    void CountPercentageAndDisplayUI()
    {
        float percentage = CountPercentage();

        percentageText.ShowPercentage(percentage);
        bar.FillWithPersentage(percentage);
        if (percentage < levelPreset.threeStarsThreshold)
        {
            star3.Disapplear();
        }
        if (percentage < levelPreset.twoStarThreshold)
        {
            star2.Disapplear();
        }
    }