Null. Error # 404
1 Answer
1Change line 2 to:
var direction : Vector3;
direction = transform.position;
But I would suggest instead that you move the initialization into Awake() or Start();
var direction : Vector3;
function Awake() {
direction = transform.position;
}
Is there anyother way to do this because I tryed what you said and changed the 2nd line so it looked like this: var direction : Vector3; function Start () { direction = transform.position; }
– ryan123321