//hello okay so i want to update the random range but i just dont know how to do it. here is what i have.
function Update(){
var meteorPos : Vector3 = Vector3(Random.Range(-8, 8), Random.Range(10, 20), 0); // declearing the random.range variable
}
// this is what i want the meteor to do
function MeteorRush(){
do{
Instantiate(meteor, meteorPos, transform.rotation);
yield WaitForSeconds (5);
}while (!gameOver);
}
// now i want it to spawn and do what i want.
function Start(){
MeteorRush();
}
//okay so what i need is a way to update the meteorPos variable while using it in other functions