Пример #1
0
    private void UpdateMilestone()
    {
        int inc = 0;

        if (score >= currentMilestone)
        {
            while (currentMilestone < score)
            {
                currentMilestone += milestone;
                milestoneTextObject.GetComponent <TMP_Text>().text = currentMilestone.ToString();
                timeRemaining += 10;
                inc           += 10;
            }

            StartCoroutine(BonusFade(bonusText));
            AudioManagerScript.PlayBonusSound();
        }
    }