How to Make Timer (Score) Count Up Faster?

I’m trying to increase the score counting speed slowly over time. Right now, all it does is add 1 second every actual second. I’d like it to slowly increase the speed in which it counts. So eventually, it’d be running at something like 2.3 score per actual second. So on and so forth.

public class Score : MonoBehaviour

{
private float score = 0.0f;

public Text scoreText;

void Update()
{
    score += Time.deltaTime;
    scoreText.text = ((int)score).ToString ();
}

}

EDIT: Here is the code I ended up using:

private float score = 0.0f;

public Text scoreText;

public float speedFactor = 1.0f;

void Update()
{
speedFactor += Time.deltaTime / 10;

 score += Time.deltaTime * speedFactor;

 scoreText.text = ((int)score).ToString ();

}

You need 2 more variables. You need a speed and a running score. You are going to multiply running score by a speed factor, say speedFactor, after you add Time.deltaTime to it. then add the result to score. Running score will need to be reset to zero after every second. Start with the speedFactor = 1;

For example:

runningScore += time.DeltaTime;
if( runningScore < 1.0f ){
     runningScore *= speeFactor;
}else{
     runningScore = 0;
}
Score+= runningScore;

You need to do this because you don’t want the score to grow exponentially each pass.

You have decide how often to increase speedFactor and by how much - and how long it is before “eventually” happens.

Eventually speedfactor = 2.3, because as you state you want to add 2.3 every second, eventually.

So at this point you need to detail exactly how you want that to happen between your game start and eventually.