MrGravity.Level.UpdateStars C# (CSharp) Метод

UpdateStars() публичный Метод

public UpdateStars ( ) : void
Результат void
        public void UpdateStars()
        {
            /* TIME -- 100%+, <120%, <140%, >140% */
            if ((int)MTimer <= IdealTime)
            { _mTimerStar = 3; }
            else if (((int)MTimer / IdealTime) <= 1.2) { _mTimerStar = 2; }
            else { _mTimerStar = 1; }

            /* COLLECTABLES -- 100%, >80%, >60%, <60% */
            if (NumCollected == NumCollectable) { _mCollectionStar = 3; }
            else if (((double)NumCollected / NumCollectable) >= 0.8) { _mCollectionStar = 2; }
            else { _mCollectionStar = 1; }

            /* DEATHS -- 0, 1, 2-3, >3 */
            if (MDeaths == 0) { _mDeathStar = 3; }
            else if (MDeaths <= 2) { _mDeathStar = 2; }
            else { _mDeathStar = 1; }
        }