unlimited game algorithm!

Hi,

I want to make a unlimited game that whatever time is going forward,the game be more difficult.

for example more enemies and faster generate.

How can i manage the generation?time and so on.

Thanks.

well, Time.time gives you the time since start-up, in seconds. so you could say:

function Update()
{
var tempTime : int = Time.time;
enemiesToSpawn : int = tempTime / 30;
}