Arrow changes selection

so i have a scene in my game which is a map selection , but i want to be able to choose different maps , so what im asking is - is it possible use an arrow to change the map in my view so i can choose which map i have? Its hard to explain , really sorry about that - iw ill attach an image to make it more clear

[19995-screen+shot+2014-01-01+at+3.06.28+pm.png|19995]

Here is one solution using Unity’s GUI:

#pragma strict

var maps : Texture[];
private var index = 0;
 
function OnGUI() {

	if (GUI.Button(Rect(50, 300, 50, 50), "<")) {
		index--;
		if (index < 0) 
			index = maps.Length-1;
	}
	
	if (GUI.Button(Rect(450, 300, 50, 50), ">")) {
		index = (index + 1) % maps.Length;
	}
	
	GUI.DrawTexture(Rect(125, 250, 300, 150), maps[index]); 
}

You need to initialize the ‘maps’ array in the Inspector by 1) setting the size to the number of maps you have, and 2) dragging and dropping map textures into the slots exposed when you set the size.

You will need to adjust the Rects as appropriate for your situation.