public void UpdateScore(int points) { if (!IsGameOver) { score += points; scorePanel.ScoreToSprite(score); } }