public void AddPoints(int points) { score += points; guiController.UpdateScoreText(score); comboCounter.IncrementComboCount(); if (GameManager.Instance.popupMessagesAlreadyShown) { return; } if (score == 10) { popupMessageRun.ShowMessage(); } if (score == 40) { popupMessagePause.ShowMessage(); } if (score == 80) { popupMessagePower.ShowMessage(); } }