예제 #1
0
    public void UpdateLevel(int numLines)
    {
        const int additionalLinesPerLevel = 2;

        if (numLines >= (additionalLinesPerLevel / 2.0f) * ((Level + 1) * (Level + 1) + Level + 1))
        {
            ++Level;
            dropletSpawner.StartDrop();
            spawn.ShouldGenerateXanax = true;
            levelUpSource.Play();
        }

        linesRenderer.SetText(numLines.ToString());
    }
예제 #2
0
 private void UpdateScoreDisplay()
 {
     scoreRenderer.SetText(score.ToString());
 }