[Solved]Using an array of two buttons?

Hello, I’m trying to use an array to define textures 2 buttons!something like this:

var Textures : Texture[];
var TextureID : int;
function OnGUI(){
if (GUI.Button (Rect (141, 97,50,50), Texture[TextureID ])){ //TextureID = 1
}
if (GUI.Button (Rect (0, 97,50,50), Texture[TextureID ])){ // TextureID = 2
}
}

Anyone have any idea? Tanks

TextureID cannot be 1 and 2 at the same time. Also arrays are 0 based, so you can do:

var Textures : Texture[];
function OnGUI(){
    if (GUI.Button (Rect (141, 97,50,50), Texture[0])){
    }
    if (GUI.Button (Rect (0, 97,50,50), Texture[1])){ //
    }
}