public void IncrementScore(int value, Vector3 position) { currentComboFadeTime = comboFadeTime; planetCombo += 1; maxPlanetCombo = Mathf.Max(planetCombo, maxPlanetCombo); float newValue = value; if (planetCombo > 2) { comboText.PlayIncreaseCombosAnimation(); comboText.SetText(planetCombo + " COMBO!"); newValue = value * (1f + planetCombo * 0.2f); } score += newValue; playerHUD.UpdateScoreText(score); playerHUD.ShowFloatingText(newValue, position); planetDestroyedCount += 1; }