/// <summary> /// If game over, do nothing /// otherwise increment the player's score /// </summary> void Update() { if (gameOver) { return; } scoreTimer += Time.deltaTime; if (scoreTimer >= scoreFrequency) { progress.AddScore(1); scoreTimer = 0; } }