Declare array in other function = error

Declaring an array in Start() is fine:

function Start () {
    var array = new Array ();
    var val = Vector3(1, 0, 0);
    array.Push(val);
    print (array);
}

however adding to the array from another function doesnt do anything, it prints an empty array:

    function Start () {
        var array = new Array ();	
        adding();
        print (array);
    }

    function adding()  {

	var val = Vector3(1, 0, 0);
        array.Push(val);
    }

Variables must be declared outside functions if they are to be accessed by more than one function. Also, don’t use the Array class. Use built-in arrays such as int for fixed-size arrays, or generic Lists otherwise.