Invoke repeating strange expectation?

Ok so I’m a bit new to unity coding, and have gotten stuck on a snare I can’t get myself out of. How timers work with unity has gotten a bit confusing so I’ve tried using invoke repeating like so:

var asteroid: Rigidbody;

var assDelay = 10;

function Update () {

//asteroid spawning

InvokeRepeating(“Incoming”, 1, assDelay);

function Incoming () {
var tempAsteroid : Rigidbody = Instantiate(asteroid);
}
}

I get the error :

Assets/PLAYER.js(53,10): BCE0044: expecting (, found ‘Incoming’.

as well as a bunch of other strange expectations. If anyone could explain to me what unity doesn’t like about this and/or if there is a better way to put a time delay on something I would be very grateful

Update() and Incoming() are two different functions, so you can’t embed one of them into the other.

var asteroid: Rigidbody;
var assDelay = 10;

function Update(){
   //asteroid spawning
   InvokeRepeating("Incoming", 1, assDelay);
}

function Incoming(){
   var tempAsteroid : Rigidbody = Instantiate(asteroid);
}