Everytime I play my scene, I only get 1 as the generated number. When I change the value in the inspector, it sticks as that. Any help is appreciated. Thanks as always.
var number : float;
function Update () {
number = Random.Range (1,2);
Debug.Log (number);
if (number >= 1) {
animation.Play("spikeyMoveJump");
}
else {
animation.Play("spikeyMoveFall");
}
}