which is faster?
a:
function LateUpdate () { var number: float = Random.Range( 0,0.25);
}
or
b:
private var number : float;
function LateUpdate () { number = Random.Range( 0,0.25); }
THANKS!
which is faster?
a:
function LateUpdate () { var number: float = Random.Range( 0,0.25);
}
or
b:
private var number : float;
function LateUpdate () { number = Random.Range( 0,0.25); }
THANKS!
Should be the former, but unless you're going to be using number a lot of times in that function, you're not going to notice
Becomes a little more apparent with structs, but still, very unlikely to notice