Creating Objects as game progress

Working on my first unity/game project I’ve come to a point where I don’t even know what I should google to get an satisfying result.

I’m building a simple arcarde game where I instiante two types of objects: Bad and good one. At this point I’m using InvokeRepeatingto spawn my objects which is not an ideal solution so far. I want to speed up creation of new objects as the player progresses - increasing difficulty is my aim here.

How do I get my object creation more “complex” - I could imagine later things like: If you got 100 of this, we will make it faster and spawn a smaller amount of good objects etc.

Any help is appreciated!

You can use Update instead. If the system spawns object every specific second use something like (in C#):

float f = 0f;
float speed = [SPECIFY AS YOU WISH];
float timeLimit = [SPECIFY AS YOU WISH];

int count = 0;

void Update(){
	f +=  Time.deltaTime * speed;
	if(f >= [timeLimit){
		//spawn the object
            f = 0f;
	}
	
	if(count >= 100){ //for example
		speed += [SPECIFY AS YOU WISH];
	}
}

Hope this helps.