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()); }
private void UpdateScoreDisplay() { scoreRenderer.SetText(score.ToString()); }