unity always freeze when I prees play. I think there is a problem with for loop but i cant figure it out.
heres the code im using.
var ball: GameObject;
var ball: GameObject;
function Start() {
var ballNum = 3;
for (var i = 0; i <= ballNum; i++){
var position = Vector3(Random.Range(1, 10), 0, 0);
Instantiate(ball, position, Quaternion.identity);
}
}